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