Skip to content

Commit cbc9b98

Browse files
XMPengYinjiexiaoxiang781216
authored andcommitted
[FS]:Fixed spacing and typo issues in code comment descriptions
[Desc]:as title Signed-off-by: pengyinjie <[email protected]>
1 parent 572daf4 commit cbc9b98

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

fs/mmap/fs_mmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ int file_mmap(FAR struct file *filep, FAR void *start, size_t length,
202202
* only file system that meets this requirement.
203203
* b. The underlying block driver supports the BIOC_XIPBASE ioctl
204204
* command that maps the underlying media to a randomly accessible
205-
* address. At present, only the RAM/ROM disk driver does this.
205+
* address. At present, only the RAM/ROM disk driver does this.
206206
*
207207
* 2. If CONFIG_FS_RAMMAP is defined in the configuration, then mmap() will
208208
* support simulation of memory mapped files by copying files whole

fs/mmap/fs_munmap.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,19 @@ int file_munmap(FAR void *start, size_t length)
118118
* 1. mmap() is the API that is used to support direct access to random
119119
* access media under the following very restrictive conditions:
120120
*
121-
* a. The filesystem impelements the mmap file operation. Any file
121+
* a. The filesystem implements the mmap file operation. Any file
122122
* system that maps files contiguously on the media should support
123123
* this ioctl. (vs. file system that scatter files over the media
124124
* in non-contiguous sectors). As of this writing, ROMFS is the
125125
* only file system that meets this requirement.
126126
* b. The underlying block driver supports the BIOC_XIPBASE ioctl
127127
* command that maps the underlying media to a randomly accessible
128-
* address. At present, only the RAM/ROM disk driver does this.
128+
* address. At present, only the RAM/ROM disk driver does this.
129129
*
130-
* munmap() is still not required in this first case. In this first
131-
* The mapped address is a static address in the MCUs address space
132-
* does not need to be munmapped. Support for munmap() in this case
133-
* provided by the simple definition in sys/mman.h:
130+
* munmap() is still not required in this first case. The mapped address
131+
* is a static address in the MCUs address space does not need to be
132+
* munmapped. Support for munmap() in this case provided by the simple
133+
* definition in sys/mman.h:
134134
*
135135
* #define munmap(start, length)
136136
*
@@ -141,10 +141,10 @@ int file_munmap(FAR void *start, size_t length)
141141
*
142142
* Input Parameters:
143143
* start The start address of the mapping to delete. For this
144-
* simplified munmap() implementation, the *must* be the start
144+
* simplified munmap() implementation, the must be the start
145145
* address of the memory region (the same address returned by
146146
* mmap()).
147-
* length The length region to be umapped.
147+
* length The length region to be unmapped.
148148
*
149149
* Returned Value:
150150
* On success, munmap() returns 0, on failure -1, and errno is set

0 commit comments

Comments
 (0)