Lines Matching refs:shm_ids
95 #define shm_ids(ns) ((ns)->ids[IPC_SHM_IDS]) macro
115 ipc_init_ids(&shm_ids(ns)); in shm_init_ns()
132 ipc_set_key_private(&shm_ids(ns), &shp->shm_perm); in do_shm_rmid()
141 free_ipcs(ns, &shm_ids(ns), do_shm_rmid); in shm_exit_ns()
168 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&shm_ids(ns), id); in shm_obtain_object()
178 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&shm_ids(ns), id); in shm_obtain_object_check()
195 ipcp = ipc_obtain_object_idr(&shm_ids(ns), id); in shm_lock()
274 ipc_rmid(&shm_ids(s->ns), &s->shm_perm); in shm_rmid()
373 down_write(&shm_ids(ns).rwsem); in __shm_close()
392 up_write(&shm_ids(ns).rwsem); in __shm_close()
432 down_write(&shm_ids(ns).rwsem); in shm_destroy_orphaned()
433 if (shm_ids(ns).in_use) in shm_destroy_orphaned()
434 idr_for_each(&shm_ids(ns).ipcs_idr, &shm_try_destroy_orphaned, ns); in shm_destroy_orphaned()
435 up_write(&shm_ids(ns).rwsem); in shm_destroy_orphaned()
507 down_write(&shm_ids(ns).rwsem); in exit_shm()
529 up_write(&shm_ids(ns).rwsem); in exit_shm()
783 error = ipc_addid(&shm_ids(ns), &shp->shm_perm, ns->shm_ctlmni); in newseg()
847 return ipcget(ns, &shm_ids(ns), &shm_ops, &shm_params); in ksys_shmget()
974 in_use = shm_ids(ns).in_use; in shm_get_stat()
980 ipc = idr_find(&shm_ids(ns).ipcs_idr, next_id); in shm_get_stat()
1003 down_write(&shm_ids(ns).rwsem); in shmctl_down()
1006 ipcp = ipcctl_obtain_check(ns, &shm_ids(ns), shmid, cmd, in shmctl_down()
1042 up_write(&shm_ids(ns).rwsem); in shmctl_down()
1056 down_read(&shm_ids(ns).rwsem); in shmctl_ipc_info()
1057 err = ipc_get_maxidx(&shm_ids(ns)); in shmctl_ipc_info()
1058 up_read(&shm_ids(ns).rwsem); in shmctl_ipc_info()
1071 down_read(&shm_ids(ns).rwsem); in shmctl_shm_info()
1072 shm_info->used_ids = shm_ids(ns).in_use; in shmctl_shm_info()
1077 err = ipc_get_maxidx(&shm_ids(ns)); in shmctl_shm_info()
1078 up_read(&shm_ids(ns).rwsem); in shmctl_shm_info()
1679 down_write(&shm_ids(ns).rwsem); in do_shmat()
1687 up_write(&shm_ids(ns).rwsem); in do_shmat()