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 174 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id); 180 struct ipc_ids *ids, int id, int cmd, 201 static inline int ipc_checkid(struct kern_ipc_perm *ipcp, int id) in ipc_checkid() argument 203 return ipcid_to_seqx(id) != ipcp->seq; in ipc_checkid() 240 struct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id);
|
D | util.c | 258 new->id = (new->seq << ipcmni_seq_shift()) + idx; in ipc_idr_alloc() 376 err = ipcp->id; in ipc_check_perms() 463 int idx = ipcid_to_idx(ipcp->id); in ipc_rmid() 593 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id) in ipc_obtain_object_idr() argument 596 int idx = ipcid_to_idx(id); in ipc_obtain_object_idr() 616 struct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id) in ipc_obtain_object_check() argument 618 struct kern_ipc_perm *out = ipc_obtain_object_idr(ids, id); in ipc_obtain_object_check() 623 if (ipc_checkid(out, id)) in ipc_obtain_object_check() 689 struct ipc_ids *ids, int id, int cmd, in ipcctl_obtain_check() argument 696 ipcp = ipc_obtain_object_check(ids, id); in ipcctl_obtain_check() [all …]
|
D | shm.c | 75 int id; member 156 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id) in shm_obtain_object() argument 158 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&shm_ids(ns), id); in shm_obtain_object() 166 static inline struct shmid_kernel *shm_obtain_object_check(struct ipc_namespace *ns, int id) in shm_obtain_object_check() argument 168 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&shm_ids(ns), id); in shm_obtain_object_check() 180 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id) in shm_lock() argument 185 ipcp = ipc_obtain_object_idr(&shm_ids(ns), id); in shm_lock() 241 shp = shm_lock(sfd->ns, sfd->id); in __shm_open() 331 shp = shm_lock(ns, sfd->id); in shm_close() 352 static int shm_try_destroy_orphaned(int id, void *p, void *data) in shm_try_destroy_orphaned() argument [all …]
|
D | msg.c | 91 static inline struct msg_queue *msq_obtain_object(struct ipc_namespace *ns, int id) in msq_obtain_object() argument 93 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&msg_ids(ns), id); in msq_obtain_object() 102 int id) in msq_obtain_object_check() argument 104 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&msg_ids(ns), id); in msq_obtain_object_check() 173 return msq->q_perm.id; in newque() 561 err = msq->q_perm.id; in msgctl_stat() 1297 msq->q_perm.id, in sysvipc_msg_proc_show()
|
D | sem.c | 456 static inline struct sem_array *sem_obtain_object(struct ipc_namespace *ns, int id) in sem_obtain_object() argument 458 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&sem_ids(ns), id); in sem_obtain_object() 467 int id) in sem_obtain_object_check() argument 469 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&sem_ids(ns), id); in sem_obtain_object_check() 562 return sma->sem_perm.id; in newary() 1281 err = sma->sem_perm.id; in semctl_stat() 2434 sma->sem_perm.id, in sysvipc_sem_proc_show()
|
D | mqueue.c | 589 static int mqueue_flush_file(struct file *filp, fl_owner_t id) in mqueue_flush_file() argument
|