同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Related Modules:
Description:
Declares structures and functions for performing memory operations, including memory mapping, remapping, unmapping, and attribute setting.
Since:
1.0
Version:
1.0
MAP_FAILED ((void *) -1) |
Indicates the return value of functions such as mmap() when the operation fails. |
MAP_SHARED 0x01 |
Indicates the mapping attribute that the updates to the mapping are visible to other processes mapping the same file and are carried through to the underlying file. This macro is used as an input parameter passed to functions such as mmap(). |
MAP_PRIVATE 0x02 |
Indicates the mapping attribute that the updates to the mapping are not visible to other mapping processes and are not carried through to the underlying file. This macro is used as an input parameter passed to functions such as mmap(). |
MAP_FIXED 0x10 |
Indicates the mapping attribute that specifies the mapping as fixed mapping. This macro is used as an input parameter passed to functions such as mmap(). |
MAP_ANON 0x20 |
Indicates the mapping attribute that specifies the mapping as anonymous mapping without a specified file or device. This macro is used as an input parameter passed to functions such as mmap(). |
Indicates the mapping attribute that specifies the mapping as anonymous mapping without a specified file or device. This macro is the synonym for MAP_ANON and is used as an input parameter passed to functions such as mmap(). |
|
Indicates that no permission is granted to the current process for accessing the mapping area. This macro is used as an input parameter passed to functions such as mmap(). |
|
Indicates that the current process is granted the read permission on the mapping area. This macro is used as an input parameter passed to functions such as mmap(). |
|
Indicates that the current process is granted the write permission on the mapping area. This macro is used as an input parameter passed to functions such as mmap(). |
|
Indicates that the current process is granted the execute permission on the mapping area. This macro is used as an input parameter passed to functions such as mmap(). |
|
Indicates the remapping attribute that allows the mapping to be relocated to a new address. This macro is used as an input parameter passed to functions such as mremap(). |
|
Indicates the remapping attribute that specifies the mapping as fixed mapping. This macro is used as an input parameter passed to functions such as mremap(). |
mmap (void *addr, size_t length, int prot, int flags, int fd, off_t offset) |
Creates a mapping between the virtual address space of the calling process and a file or device. |
munmap (void *addr, size_t length) |
Removes all mappings for the specified virtual address space. |
mprotect (void *addr, size_t len, int prot) |
Sets protection attributes for the memory pages contained in the memory region starting from addr with the specified length. |
mremap (void *old_address, size_t old_size, size_t new_size, int flags,...) |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。