apache / apache/nuttx

Implement mmap for BCH and FTL

Open
#8,019 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

After https://github.com/apache/nuttx/pull/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:

1. 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
2. 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.