[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regarding Memory sharing
One way would be to open your driver (through device special file) and
then call mmap system call. mmap will eventually reach you driver and in
the driver you can map the memory you allocated to virtual address space
of userspace application.
Usman
Vinay Salotagi wrote:
<>Hi All
I have allocated a piece of memory in the kernel space ( using kmalloc
) and wanted to share this memory with a process running in user mode.
Is there any way that the process can directly access this memory
without writing a system call. I mean can we attach the this memory in
the process's
address space, some thing similar to shmat( ) which we use with the
shared memory and directly start the transactions.
<>--
Usman S. Ansari
http://www.beconvinced.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/