-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
After #8000, mmap/munmap is the first-class interface, since block/mtd(e.g. RAM disk or XIP flash) device may support mmap too, It could be useful to:
- Add mmap callback to block_operations and mtd_dev_s:
https://github.com/apache/nuttx/blob/master/include/nuttx/fs/fs.h#L260-L274
https://github.com/apache/nuttx/blob/master/include/nuttx/mtd/mtd.h#L141-L187 - Forward mmap from file_operations to block_operations to mtd_dev_s:
https://github.com/apache/nuttx/blob/master/drivers/bch/bchdev_driver.c#L81
https://github.com/apache/nuttx/blob/master/drivers/mtd/ftl.c#L106-L117
Metadata
Metadata
Assignees
Labels
No labels