|
|
Log in / Subscribe / Register

Driver porting: supporting mmap()

Driver porting: supporting mmap()

Posted Aug 6, 2004 3:37 UTC (Fri) by jinzhcheng (guest, #23745)
Parent article: Driver porting: supporting mmap()

if we need to remap the address which returned from ioremap to our user-space, we can use remap_page_range in kernel2.4. but now the relevant virtual memory area (VMA) pointer must be passed as the first parameter of remap_page_range(), which vma can we pass to remap_page_range now ?
thx for your's reply.


to post comments

Driver porting: supporting mmap()

Posted Dec 10, 2004 19:38 UTC (Fri) by admorgan (subscriber, #26575) [Link]

Hopefully you have already solved this as it was posted in August. Just in case the vfs will have already setup the correct vma when it passes it to your mmap function for your driver. That is what you should pass to io_remap_page_range


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds