shared memory via /dev/shm?

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Thu Jul 30 20:00:01 EDT 2015


On Thu, 30 Jul 2015 16:03:51 -0700, Nicholas Murphy said:

> Yes, I’ve read all the disclaimers against accessing files in the kernel, but
> I want to set up a shared memory segment between a kernel module and one or
> more user processes, and /dev/shm seems like a good way to do that.

Is there a specific reason you aren't letting the userspace program create
an mmap() area and then write the identifying information to a /sys attribute
file (or other means of notifying the kernel of what to use)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150730/d7c5b026/attachment.bin 


More information about the Kernelnewbies mailing list