What is the usecase here ? Do we need to share the entire process address space to a kernel thread ?
If address space sharing between userspace thread and kernel thread space is the whole idea then we can mmap process address space and do get_user_pages() to allocate physcial page and pin it.
kernel thread can do kmap() and kumap() to use the pages from process address space.
http://lxr.free-electrons.com/source/fs/aio.c?v=3.8#L99
Regards
Manoj Nayak
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies