NOTE: Shmat and mmap are used in Lotus Domino to get Shared memory.
注:shmat和mmap在LotusDomino中用于获得共享内存。
The munmap subroutine only unmaps regions created from calls to the mmap subroutine.
munmap子例程只是取消 对mmap 子例程的调用而创建的区域的映射。
The parameters passed to mmap() must not conflict with the access requested during open().
传递给 mmap()的参数必须不能与 open()时请求的访问相冲突。
The driver will perform hardware register accesses and advanced programming by making use of mmap , for example.
例如,这个驱动程序可能会通过利用mmap来访问硬件寄存器并进行高级编程。
REMARK: You can't mmap the file that is opened with APR_BUFFERED flag. The following code returns APR_EBADF.
备注:你不能映射一个使用APR_BUFFERED标志位打开的文件,如下代码将返回APR_EBADF。
Since it operates on the system break (a global variable), it cannot coexist with any other allocator or with mmap.
由于它对系统中断点(一个全局变量)进行操作,所以它不能与其他分配程序或者mmap一起使用。
A related problem is caused by applications that try to load code at an absolute address by calling mmap with the flag MAP_FIXED.
应用程序试图通过调用带有MAP_ FIXED标志的mmap从绝对地址加载代码时会产生一个相关问题。
However, as with mmap, the call itself can be expensive, so is only attempted if trailing unused memory exceeds a tunable threshold.
尽管如此,对于mmap来说,调用本身可能十分昂贵,所以在末尾的未使用内存超过一个可调整的阀值时才被尝试使用。
A discussion of those options is beyond the scope of this introduction; consult the mmap documentation for your operating system for specifics.
对这些操作的讨论超出了本文的范围;具体方法请查阅操作系统的mmap文档。
Within a driver, the mmap function is implemented through the remap_pfn_range kernel function, which provides a linear mapping of device memory into a user's address space.
在一个驱动程序中,mmap函数通过remap _ pfn_range内核函数实现,它提供设备内存到用户地址空间的线性映射。
Within a driver, the mmap function is implemented through the remap_pfn_range kernel function, which provides a linear mapping of device memory into a user's address space.
在一个驱动程序中,mmap函数通过remap _ pfn_range内核函数实现,它提供设备内存到用户地址空间的线性映射。
应用推荐