LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-26-2010, 04:51 AM   #1
anuragccsu
LQ Newbie
 
Registered: Jun 2009
Posts: 14

Rep: Reputation: 0
parameter passing from user to kernel space


Hi All,

I am a Linux kernel newbie, so please forgive me if my questions seem to be silly.

I have a query as:
if from a application i do:

printf ("the size of integer is %d bytes on Linux", sizeof (int));

so my question is how this data "the size of integer is %d bytes on linux" is passed to the write system call. I want know how the data is exchanged between user space and kernel space, what data structures are used to handle these kind of requests on 2.6 kernel?

Thanks
Anurag Vashisth
 
Old 03-26-2010, 06:54 AM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
The /proc/ directory contains a hierarchy of special files allowing applications and users to peer into the kernel's view of the system.
http://tldp.org/LDP/lkmpg/2.6/html/x710.html
 
1 members found this post helpful.
Old 03-26-2010, 08:47 PM   #3
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
You can check following link out. They show you simple flow of execution.
http://puretechie.blogspot.com/2006/...tem-calls.html
 
1 members found this post helpful.
  


Reply



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
Division of Logical Memory Space in to User Space and Kernel Space shreshtha Linux - Newbie 2 01-14-2010 09:59 AM
passing kernel parameter to vms evil_empire Linux - Virtualization and Cloud 5 12-18-2009 09:57 AM
Passing a custom parameter to the kernel jkoshi Linux - Kernel 11 07-13-2009 11:54 AM
Passing parameter to kernel when booting from floppy NewtoSlack Slackware 1 10-10-2003 08:24 PM
parameter passing mechanisms dhanakom Programming 2 09-01-2003 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:49 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
Open Source Consulting | Domain Registration