pussuw commented on PR #12041:
URL: https://github.com/apache/nuttx/pull/12041#issuecomment-2036743639

   When you mmap a device, the driver needs to implement mmap, this is where 
the call to up_shmat etc should go to ?
   
   As per the "prot" parameter, what is this needed for ? You can always simply 
add it, or overload the functions, whichever you prefer.
   
   > as its input pages might be scattered pages.
   
   Of course, the function does not expect them to be contiguous ?
   
   >  implementations can also choose to use non-leaf PTE entries if the size 
is bigger
   
   You mean to use giga/megapages instead of 4K pages for mapping ? I don't 
think this is a good idea. For kernel mapped memory sure, but for user 
mappings, I would not do it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to