July 31, 2015
midnight
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)?