October 2017
Intermediate to advanced
354 pages
9h 28m
English
The Linux kernel supports POSIX shared memory through a special filesystem called tmpfs, which is mounted on to /dev/shm of the rootfs. This implementation offers a distinct API which is consistent with the Unix file model, resulting in each shared memory allocation to be represented by a unique filename and inode. This interface is considered more flexible by application programmers since it allows standard POSIX file-mapping routines mmap() and unmap() for attaching and detaching memory segments into the caller process address space.
Following is a summarized description of interface routines:
| API | Description |
| shm_open() | Create and open a shared memory segment identified by a filename |
| mmap() | POSIX standard file ... |
Read now
Unlock full access