Description: UNIX提供了程序共享内存的机制,Linux内核从2.0开始也加入了这一功能。mmap(memory map)函数用于建立一段内存,使之能够被多个程序读写。它创建一个指向一段内存区域的指针并将其与特定的文件内容关联。-UNIX provides a mechanism for sharing memory, Linux kernel 2.0 from the beginning of this feature is also added. mmap (memory map) for the establishment of a section of memory function, so that multiple programs can be read and write. Point to a section of it to create a pointer memory area and the content of the document with specific relevance. Platform: |
Size: 1024 |
Author:sbyygyfd |
Hits:
Description: 创建或打开一个文件内核对象,该对象用于标识磁盘上你想用作内存映射文件的文件;
创建一个文件映射内核对象,告诉系统该文件的大小和你打算如何访问该文件;
让系统将文件映射对象的全部或一部分映射到你的进程地址空间中;
-Create or open a file kernel object, the object is used to identify the disk you want to be used as memory-mapped file to create a file-mapping kernel object, tell the system that the file size and how you intend to access the file allow the system the file map all or part of the object is mapped to your process address space Platform: |
Size: 1024 |
Author:fans |
Hits:
Description: Code samples of how to map the memory allocated in the kernel mode to the user mode. Platform: |
Size: 2048 |
Author:nco8466zhipan |
Hits: