LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-31-2008, 08:39 PM   #1
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Rep: Reputation: 16
What I should do to transmit mass of data from user to kernel space?


Any existent interface or tool could be suggested.

Happy New Year,
Shawn
 
Old 12-31-2008, 08:43 PM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Why would you want to do this? You need a driver in the kernel to support this. Then you would merely open() the driver by opening its entry in /dev then write() to it.

But you have to put that data someplace when you get it into the kernel's space, and you would ordinarily have some purpose for doing this.
 
Old 01-05-2009, 06:29 AM   #3
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
Or you have the mmap file ops, then you can directly use user space address space in kernel mode, and thus avoiding copy and memory space wasting... Take a look there http://lwn.net/Kernel/LDD3/
 
Old 01-07-2009, 03:20 AM   #4
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Original Poster
Rep: Reputation: 16
Thank you both.
I will use procfs and mmap() ioctl() to do it.

Cheers,
Shawn
 
  


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
Transfer data from kernel to user space pmil Programming 11 08-01-2009 05:23 AM
notify user space application from the kernel space lordofring Linux - Software 2 06-22-2009 12:32 PM
how to input data from user space to kernel unikgila Linux - Kernel 3 08-26-2008 10:04 PM
How to share data b/w user space and kernel space nandac Linux - Kernel 1 11-28-2006 10:15 PM

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

All times are GMT -5. The time now is 08:41 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