<div dir="ltr"><br>What is the usecase here ? Do we need to share the entire process address space to a kernel thread ?<br><br>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.<br>kernel thread can do kmap() and  kumap() to use the pages from process address space.<br><br><a href="http://lxr.free-electrons.com/source/fs/aio.c?v=3.8#L99">http://lxr.free-electrons.com/source/fs/aio.c?v=3.8#L99</a><br><br>Regards<br>Manoj Nayak<br><br><br></div>