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>
65 /* The task created the shm object. NULL if the task is dead. */
147 ipc_init_proc_interface("sysvipc/shm", in shm_init()
259 /* This is called by fork, once for every shm attach. */
300 * shm_may_destroy - identifies whether shm segment should be destroyed now
330 /* remove from the list of attaches of the shm segment */ in shm_close()
494 * IPC ID that was removed, and possibly even reused by another shm in shm_mmap()
828 * Calculate and add used RSS and swap pages of a shm.
1410 * Fix shmaddr, allocate descriptor, map shm, add attach descriptor to lists.
1503 * We need to take a reference to the real shm file to prevent the in do_shmat()
1505 * file extends beyond that of the shm segment. It's not usually in do_shmat()
1508 * We'll deny the ->mmap() if the shm segment was since removed, but to in do_shmat()
1509 * detect shm ID reuse we need to compare the file pointers. in do_shmat()
1643 * This function tries to be smart and unmap shm segments that in ksys_shmdt()
1645 * - It first determines the size of the shm segment that should be in ksys_shmdt()
1646 * unmapped: It searches for a vma that is backed by shm and that in ksys_shmdt()
1649 * - Then it unmaps all shm vmas that started at shmaddr and that in ksys_shmdt()
1651 * same shm segment from which we determined the size. in ksys_shmdt()
1678 * Record the file of the shm segment being in ksys_shmdt()
1687 * We discovered the size of the shm segment, so in ksys_shmdt()