Searched refs:id (Results 1 – 6 of 6) sorted by relevance
/ipc/ |
D | util.h | 128 #define ipcid_to_idx(id) ((id) & IPCMNI_IDX_MASK) argument 129 #define ipcid_to_seqx(id) ((id) >> ipcmni_seq_shift()) argument 177 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id); 183 struct ipc_ids *ids, int id, int cmd, 204 static inline int ipc_checkid(struct kern_ipc_perm *ipcp, int id) in ipc_checkid() argument 206 return ipcid_to_seqx(id) != ipcp->seq; in ipc_checkid() 243 struct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id);
|
D | util.c | 259 new->id = (new->seq << ipcmni_seq_shift()) + idx; in ipc_idr_alloc() 377 err = ipcp->id; in ipc_check_perms() 499 int idx = ipcid_to_idx(ipcp->id); in ipc_rmid() 627 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id) in ipc_obtain_object_idr() argument 630 int idx = ipcid_to_idx(id); in ipc_obtain_object_idr() 650 struct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id) in ipc_obtain_object_check() argument 652 struct kern_ipc_perm *out = ipc_obtain_object_idr(ids, id); in ipc_obtain_object_check() 657 if (ipc_checkid(out, id)) in ipc_obtain_object_check() 723 struct ipc_ids *ids, int id, int cmd, in ipcctl_obtain_check() argument 730 ipcp = ipc_obtain_object_check(ids, id); in ipcctl_obtain_check()
|
D | shm.c | 84 int id; member 166 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id) in shm_obtain_object() argument 168 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&shm_ids(ns), id); in shm_obtain_object() 176 static inline struct shmid_kernel *shm_obtain_object_check(struct ipc_namespace *ns, int id) in shm_obtain_object_check() argument 178 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&shm_ids(ns), id); in shm_obtain_object_check() 190 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id) in shm_lock() argument 195 ipcp = ipc_obtain_object_idr(&shm_ids(ns), id); in shm_lock() 284 shp = shm_lock(sfd->ns, sfd->id); in __shm_open() 374 shp = shm_lock(ns, sfd->id); in shm_close() 395 static int shm_try_destroy_orphaned(int id, void *p, void *data) in shm_try_destroy_orphaned() argument [all …]
|
D | msg.c | 101 static inline struct msg_queue *msq_obtain_object(struct ipc_namespace *ns, int id) in msq_obtain_object() argument 103 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&msg_ids(ns), id); in msq_obtain_object() 112 int id) in msq_obtain_object_check() argument 114 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&msg_ids(ns), id); in msq_obtain_object_check() 183 return msq->q_perm.id; in newque() 582 err = msq->q_perm.id; in msgctl_stat() 1331 msq->q_perm.id, in sysvipc_msg_proc_show()
|
D | sem.c | 478 static inline struct sem_array *sem_obtain_object(struct ipc_namespace *ns, int id) in sem_obtain_object() argument 480 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&sem_ids(ns), id); in sem_obtain_object() 489 int id) in sem_obtain_object_check() argument 491 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&sem_ids(ns), id); in sem_obtain_object_check() 584 return sma->sem_perm.id; in newary() 1301 err = sma->sem_perm.id; in semctl_stat() 2475 sma->sem_perm.id, in sysvipc_sem_proc_show()
|
D | mqueue.c | 665 static int mqueue_flush_file(struct file *filp, fl_owner_t id) in mqueue_flush_file() argument
|