xiaoxiang781216 commented on PR #12041: URL: https://github.com/apache/nuttx/pull/12041#issuecomment-2061750381
> > For kernel mapped memory sure, but for user mappings, I would not do it. > > @pussuw Is this due to user space page table design limiations (e.g. some non-leaf page tables might be shared among processes) or for some other reasons? > > @pussuw and @xiaoxiang781216, on the other side, it seems that we still need wrap page-oriented `up_shmat()` to byte oriented function like `xxx_map(uintptr_t vaddr, uinptr_t paddr, size_t size)` as it is more convenient to use in drivers like `video/fb.c` or alike. Where should we put this wrapped function? I don't think that we need duplicate the wrapping code everywhere. tthe unit of mmap is page size, why do we need byte unit? -- 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]
