Lines Matching full:shm
3 * linux/ipc/shm.c
7 * Fixed the shm swap deallocation (shm_unuse()), August 1998 Andrea Arcangeli.
9 * /proc/sysvipc/shm support (c) 1999 Dragos Acostachioaie <dragos@iname.com>
11 * SMP thread shm, Jean-Luc Boyard <jean-luc.boyard@siemens.fr>
31 #include <linux/shm.h>
32 #include <uapi/linux/shm.h>
68 * The task created the shm object, for
160 ipc_init_proc_interface("sysvipc/shm", in shm_init()
303 /* This is called by fork, once for every shm attach. */
349 * shm_may_destroy - identifies whether shm segment should be destroyed now
377 /* remove from the list of attaches of the shm segment */ in __shm_close()
481 * the shm objects will be free by free_ipc_work(). in exit_shm()
499 * 5) unlink the shm segment from the list of segments in exit_shm()
600 * IPC ID that was removed, and possibly even reused by another shm in shm_mmap()
931 * Calculate and add used RSS and swap pages of a shm.
1513 * Fix shmaddr, allocate descriptor, map shm, add attach descriptor to lists.
1606 * We need to take a reference to the real shm file to prevent the in do_shmat()
1608 * file extends beyond that of the shm segment. It's not usually in do_shmat()
1611 * We'll deny the ->mmap() if the shm segment was since removed, but to in do_shmat()
1612 * detect shm ID reuse we need to compare the file pointers. in do_shmat()
1747 * This function tries to be smart and unmap shm segments that in ksys_shmdt()
1749 * - It first determines the size of the shm segment that should be in ksys_shmdt()
1750 * unmapped: It searches for a vma that is backed by shm and that in ksys_shmdt()
1753 * - Then it unmaps all shm vmas that started at shmaddr and that in ksys_shmdt()
1755 * same shm segment from which we determined the size. in ksys_shmdt()
1779 * Record the file of the shm segment being in ksys_shmdt()
1789 * We discovered the size of the shm segment, so in ksys_shmdt()