This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit cbc9b98075a5ffaceb7a409b30b5f67c80a4139c Author: pengyinjie <[email protected]> AuthorDate: Wed Jun 19 16:51:56 2024 +0800 [FS]:Fixed spacing and typo issues in code comment descriptions [Desc]:as title Signed-off-by: pengyinjie <[email protected]> --- fs/mmap/fs_mmap.c | 2 +- fs/mmap/fs_munmap.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/fs/mmap/fs_mmap.c b/fs/mmap/fs_mmap.c index 8b310e74b4..3b40f63049 100644 --- a/fs/mmap/fs_mmap.c +++ b/fs/mmap/fs_mmap.c @@ -202,7 +202,7 @@ int file_mmap(FAR struct file *filep, FAR void *start, size_t length, * 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 accessible - * address. At present, only the RAM/ROM disk driver does this. + * address. At present, only the RAM/ROM disk driver does this. * * 2. If CONFIG_FS_RAMMAP is defined in the configuration, then mmap() will * support simulation of memory mapped files by copying files whole diff --git a/fs/mmap/fs_munmap.c b/fs/mmap/fs_munmap.c index ac7daf8e6a..3f65c28267 100644 --- a/fs/mmap/fs_munmap.c +++ b/fs/mmap/fs_munmap.c @@ -118,19 +118,19 @@ int file_munmap(FAR void *start, size_t length) * 1. mmap() is the API that is used to support direct access to random * access media under the following very restrictive conditions: * - * a. The filesystem impelements the mmap file operation. Any file + * a. The filesystem implements the mmap file operation. Any file * system that maps files contiguously on the media should support * this ioctl. (vs. file system that 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 accessible - * address. At present, only the RAM/ROM disk driver does this. + * address. At present, only the RAM/ROM disk driver does this. * - * munmap() is still not required in this first case. In this first - * The mapped address is a static address in the MCUs address space - * does not need to be munmapped. Support for munmap() in this case - * provided by the simple definition in sys/mman.h: + * munmap() is still not required in this first case. The mapped address + * is a static address in the MCUs address space does not need to be + * munmapped. Support for munmap() in this case provided by the simple + * definition in sys/mman.h: * * #define munmap(start, length) * @@ -141,10 +141,10 @@ int file_munmap(FAR void *start, size_t length) * * Input Parameters: * start The start address of the mapping to delete. For this - * simplified munmap() implementation, the *must* be the start + * simplified munmap() implementation, the must be the start * address of the memory region (the same address returned by * mmap()). - * length The length region to be umapped. + * length The length region to be unmapped. * * Returned Value: * On success, munmap() returns 0, on failure -1, and errno is set
