Re: Avoiding copy_from_user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 09, 2003 at 01:52:39PM -0000, Biswaranjan   wrote:
> i need to manipulate the buffer provided to the kernel during write()
> directly from the kernel without using copy_from_user() due to
> efficiency reasons..

I think the best way to solve this problem is to write your device driver
so that it implements mmap(2). Then, programs that use your device can
simply open(2) it, call mmap(2), and then use the mapped memory buffer
directly.

Search for the f_op->mmap function.

-- 
http://immunix.org/

Attachment: pgp00439.pgp
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux