title: How to access tmpfs file under /dev/shm, created by user-space process, in a kernel module?
body: <p>I created a file under /dev/shm (tmpfs) from user-space, I mmap'd this file into the process address space and pushed contents.
  Now, how to map this file again under kernel virtual address space to access the contents written by the user-space process. Of course I know how to read it using filp_open() and vfs_read(), but I really want to access the contents using direct memory pointers similar to mmap() for user-space processes.
  I want to do something similar to what's in mm/shmem.c, but instead of doing the mapping between the user-space VMA and the /SYSVXXX file, I want to do this with kernel virtual address VMA instead.
  Can anyone help in that?</p>
  
  <p>Thanks.. </p>