LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-07-2008, 01:09 AM   #1
greplinux
Member
 
Registered: Jun 2007
Posts: 118

Rep: Reputation: 17
User space , kernel space interaction


Hi,

I have a doubt regarding how the calls made in user space gets mapped into kernel space. Like a 'read' call issued in user space application gets in to the read function call of the driver. how it is achieved.

Thanks,
 
Old 10-07-2008, 02:08 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
If you really have doubts you should be able to support them with an explanation. Else you'll want to find an (on-line) copy of "Understanding The Linux Kernel" version 3. I think it explains best and in detail what you're after.
 
Old 10-07-2008, 04:27 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,156

Rep: Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204
Also, "use the Source, Luke!"

If you install the source-packages, Linux installations will have a directory such as /usr/src/linux which contains the actual source-code of the system. In it, you will find not only documentation but copious examples of just how all of this voodoo is done.

In the case of a device, every device driver must provide a set of standard routines to support read, write, ioctl, and so-on. Device drivers "register themselves" with the kernel, providing (among other things) a table which points to their respective versions of these (and other) routines. Higher-level routines within the kernel use these tables to pass control to the appropriate driver routines at the appropriate times.
 
  


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
notify user space application from the kernel space lordofring Linux - Software 2 06-22-2009 01:32 PM
synchronization between kernel space and user space rentalakranthi Programming 6 07-27-2008 09:51 PM
How to share data b/w user space and kernel space nandac Linux - Kernel 1 11-28-2006 11:15 PM


All times are GMT -5. The time now is 10:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration