Shared Memory.
More...
Shared Memory.
Shared memory is exposed in the /dev/shmem directory. Shared memory allows multiple processes to share a section of memory for inter-process communication (IPC).
Creating Shared Memory
Shared memory objects are created using the /dev/shmem/new file. Opening this file using open() will create a new anonymous shared memory object and return a file descriptor to it.
Using Shared Memory
Shared memory objects can be mapped to the current process's address space using the mmap() system call. The first call to mmap() will decide the size of the shared memory object. Subsequent calls to mmap() will map the existing shared memory object.
◆ shmem_object_free()
◆ shmem_object_new()
◆ shmem_vmm_callback()
◆ shmem_object_allocate_pages()
◆ shmem_open()
◆ shmem_close()
◆ shmem_mmap()
◆ shmem_init()
◆ shmem_deinit()
◆ shmemDir
◆ newFile
◆ fileOps
Initial value:= {
}
static void * shmem_mmap(file_t *file, void *address, size_t length, size_t *offset, pml_flags_t flags)
static void shmem_close(file_t *file)
static uint64_t shmem_open(file_t *file)
Definition at line 223 of file shmem.c.