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 子例程的调用而创建的区域的映射。
Also, invoking mmap and mfree is much slower than carving out an existing chunk of memory.
还有,调用mmap和mfree比雕刻出一个已存在的内存块慢许多。
The parameters passed to mmap() must not conflict with the access requested during open().
传递给 mmap()的参数必须不能与 open()时请求的访问相冲突。
Linux uses the shmget/mmap function to access files by directly incorporating file data into memory.
Linux使用shmget/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。
The driver will perform hardware register accesses and advanced programming by making use of mmap , for example.
例如,这个驱动程序可能会通过利用mmap来访问硬件寄存器并进行高级编程。
However, this improvement doesn't come without a price; there are hidden pitfalls when using the mmap+write method.
然而,性能的改进需要付出代价的;是用mmap与write这种组合方法,存在着一些隐藏的陷阱。
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从绝对地址加载代码时会产生一个相关问题。
The rest of the segments (0x3 to 0xf) are available for the user process is shmat or mmap is called by dynamic segment allocation.
如果动态段分配调用shmat或mmap,那么其余的段(0x3到0xf)供用户进程使用。
However, as with mmap, the call itself can be expensive, so is only attempted if trailing unused memory exceeds a tunable threshold.
尽管如此,对于mmap来说,调用本身可能十分昂贵,所以在末尾的未使用内存超过一个可调整的阀值时才被尝试使用。
However, because of built-in limitations and overheads associated with mmap, it is only worth doing this in very restricted situations.
尽管如此,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内核函数实现,它提供设备内存到用户地址空间的线性映射。
应用推荐