Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-15-2009, 06:36 AM   #1
LQ Newbie
Registered: Apr 2009
Location: Bengaluru
Distribution: Ubuntu 8.10
Posts: 10

Rep: Reputation: 0
Accessing User mode buffer in Kernel module

I am writing a device driver that provides an ioctl interface and read and write operations on its device node. I have a user mode application which talks to the driver through read, write or ioctl interface.
I would need to pass huge amounts of data from the application to the driver and vice versa. Hence, using copy_to_user() and copy_from_user() in the driver is not an exciting option for me since it slows down the execution as well as occupies more memory.
Is there any way i can use the buffer allocated by the application to read/ write data from/to without copying?


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
how to use the buffer of user mode in kernel mode liqiuhua123 Programming 2 02-05-2009 10:54 PM
[Kernel Module] Accessing the serial port Moepi Programming 1 09-23-2007 04:51 PM
Accessing a kernel buffer from user space jan_capri Linux - Kernel 2 05-22-2007 12:44 AM
Accessing page 0 from a kernel module mjfeeney Linux - General 1 08-04-2006 01:02 AM
Compiling a Kernel Module for User Mode Linux Last Attacker Programming 1 04-13-2006 07:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:01 AM.

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