mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Change FIOC_MMAP into file operation call
- Add mmap into file_operations and remove it from ioctl definitions. - Add mm_map structure definitions to support future unmapping - Modify all drivers to initialize the operations struct accordingly Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
41e9df2f3e
commit
f33dc4df3f
@@ -458,12 +458,11 @@ are two conditions where ``mmap()`` can be supported:
|
||||
1. ``mmap()`` can be used to support *eXecute In Place* (XIP) on random
|
||||
access media under the following very restrictive conditions:
|
||||
|
||||
a. The file-system supports the ``FIOC_MMAP`` ioctl command. Any file
|
||||
system that maps files contiguously on the media should support
|
||||
this ``ioctl`` command. By comparison, most file system scatter
|
||||
files over the media in non-contiguous sectors. As of this
|
||||
writing, ROMFS is the only file system that meets this
|
||||
requirement.
|
||||
a. Any file system that maps files contiguously on the media
|
||||
should implement the mmap file operation. By comparison, most
|
||||
file system scatter files over the media in non-contiguous
|
||||
sectors. As of this writing, ROMFS is the only file system
|
||||
that meets this requirement.
|
||||
|
||||
b. The underlying block driver supports the ``BIOC_XIPBASE``
|
||||
``ioctl`` command that maps the underlying media to a randomly
|
||||
|
||||
Reference in New Issue
Block a user