LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-10-2002, 02:06 PM   #1
Config
Member
 
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Rep: Reputation: 30
Question A few questions about Linux....


Sorry, I haven't been able to come up with a better title....

I have two questions floating in my mind...
1) The kernel does can many modules which have many functions. But how does the kernel know when to call which function in a certain module? I mean, how does the kernel know in advance which function is responsible to do what it is expected to do?

2) Segmentation faults are "traps", that cause a program to crash if it tries to access reserved memory space. Is this always due to programming bugs?
 
Old 06-10-2002, 03:42 PM   #2
kahuna
Member
 
Registered: Jun 2002
Location: Grand Rapids, MI
Distribution: Redhat, Slackware
Posts: 78

Rep: Reputation: 15
For the first question, you should take a look at the old kernel book. Some of it is outdated, but it's still a good read.
http://www.tldp.org/LDP/tlk/modules/modules.html

As far as the seccond question,
You *could* raise SIGSEGV with sigaction or something like it, but I cannot think of any particularly useful application for this.
 
Old 06-11-2002, 11:15 AM   #3
Config
Member
 
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Original Poster
Rep: Reputation: 30
Thank you for the link - i'll give it a read as soon I have time
 
Old 06-11-2002, 11:18 AM   #4
kahuna
Member
 
Registered: Jun 2002
Location: Grand Rapids, MI
Distribution: Redhat, Slackware
Posts: 78

Rep: Reputation: 15
Talking

Heh, No problem!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A few linux questions... penguinguy Fedora 6 12-17-2004 09:06 PM
linux q2 Questions RancidLM Linux - General 3 11-19-2003 05:54 PM
New to Linux.... got a few questions Siorai Slackware 8 08-06-2003 09:35 PM
100% Linux n00b with a ton of Linux questions Foxy Linux - General 21 07-30-2003 03:47 PM
Linux Questions omes Linux - Software 6 01-13-2003 01:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration