Searched refs:shmid (Results 1 – 8 of 8) sorted by relevance
| /linux/tools/testing/selftests/mm/ |
| H A D | hugepage-shm.c | |
| H A D | pagemap_ioctl.c | 165 void *gethugetlb_mem(int size, int *shmid) in gethugetlb_mem() 169 if (shmid) { in gethugetlb_mem() 170 *shmid = shmget(2, size, SHM_HUGETLB | IPC_CREAT | SHM_R | SHM_W); in gethugetlb_mem() 171 if (*shmid < 0) in gethugetlb_mem() 174 mem = shmat(*shmid, 0, 0); in gethugetlb_mem() 176 shmctl(*shmid, IPC_RMID, NULL); in gethugetlb_mem() 1645 int shmid, buf_size, fd, i, ret; in main() 1712 mem = gethugetlb_mem(mem_size, &shmid); in main() 1720 shmctl(shmid, IPC_RMID, NULL); in main() 1751 shmctl(shmid, IPC_RMI in main() 164 gethugetlb_mem(int size,int * shmid) gethugetlb_mem() argument 1598 int shmid, buf_size, fd, i, ret; main() local [all...] |
| /linux/tools/testing/selftests/powerpc/benchmarks/ |
| H A D | context_switch.c | 328 int shmid; in futex_setup() local 331 shmid = shmget(IPC_PRIVATE, getpagesize(), SHM_R | SHM_W); in futex_setup() 332 if (shmid < 0) { in futex_setup() 337 shmaddr = shmat(shmid, NULL, 0); in futex_setup() 340 shmctl(shmid, IPC_RMID, NULL); in futex_setup() 344 shmctl(shmid, IPC_RMID, NULL); in futex_setup()
|
| /linux/include/linux/ |
| H A D | shm.h | 17 long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr, 26 static inline long do_shmat(int shmid, char __user *shmaddr, in do_shmat() argument
|
| H A D | compat.h | 754 asmlinkage long compat_sys_shmat(int shmid, compat_uptr_t shmaddr, int shmflg);
|
| /linux/arch/xtensa/kernel/ |
| H A D | syscall.c | 39 asmlinkage long xtensa_shmat(int shmid, char __user *shmaddr, int shmflg) in xtensa_shmat() argument 44 err = do_shmat(shmid, shmaddr, shmflg, &ret, SHMLBA); in xtensa_shmat()
|
| /linux/Documentation/arch/sparc/ |
| H A D | adi.rst | 188 int shmid, version; 213 if ((shmid = shmget(2, BUFFER_SIZE, 219 shmaddr = shmat(shmid, NULL, 0); 222 shmctl(shmid, IPC_RMID, NULL); 277 shmctl(shmid, IPC_RMID, NULL); 284 shmctl(shmid, IPC_RMID, NULL);
|
| /linux/ipc/ |
| H A D | util.h | 288 long compat_ksys_old_shmctl(int shmid, int cmd, void __user *uptr);
|