Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Oct 2006
Need get_user_pages to fall on a 64KB boundary
pages = kmalloc(nr_pages, GFP_KERNEL);
get_user_pages(current, current->mm, hostaddr, nr_pages, rw == READ, 0, pages, NULL);
page_to_phys(pages); //this address
since the physical address that comes out of page_to_phys is on a 4KB (PAGE_SIZE) boundary, the chances of my routine successfully transfering the data to the user buffer is 1 in 16. Any suggestions on how to move the pages attached to my user space buffer?
Thanks for the time and consideration,