Home
last modified time | relevance | path

Searched refs:ipcp (Results 1 – 5 of 5) sorted by relevance

/ipc/
Dutil.c306 struct kern_ipc_perm *ipcp, in ipc_check_perms() argument
312 if (ipcperms(ns, ipcp, params->flg)) in ipc_check_perms()
315 err = ops->associate(ipcp, params->flg); in ipc_check_perms()
317 err = ipcp->id; in ipc_check_perms()
340 struct kern_ipc_perm *ipcp; in ipcget_public() local
349 ipcp = ipc_findkey(ids, params->key); in ipcget_public()
350 if (ipcp == NULL) { in ipcget_public()
364 err = ops->more_checks(ipcp, params); in ipcget_public()
370 err = ipc_check_perms(ns, ipcp, ops, params); in ipcget_public()
372 ipc_unlock(ipcp); in ipcget_public()
[all …]
Dshm.c89 static void do_shm_rmid(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in do_shm_rmid() argument
92 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in do_shm_rmid()
133 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&shm_ids(ns), id); in shm_obtain_object() local
135 if (IS_ERR(ipcp)) in shm_obtain_object()
136 return ERR_CAST(ipcp); in shm_obtain_object()
138 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object()
143 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&shm_ids(ns), id); in shm_obtain_object_check() local
145 if (IS_ERR(ipcp)) in shm_obtain_object_check()
146 return ERR_CAST(ipcp); in shm_obtain_object_check()
148 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object_check()
[all …]
Dmsg.c79 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&msg_ids(ns), id); in msq_obtain_object() local
81 if (IS_ERR(ipcp)) in msq_obtain_object()
82 return ERR_CAST(ipcp); in msq_obtain_object()
84 return container_of(ipcp, struct msg_queue, q_perm); in msq_obtain_object()
90 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&msg_ids(ns), id); in msq_obtain_object_check() local
92 if (IS_ERR(ipcp)) in msq_obtain_object_check()
93 return ERR_CAST(ipcp); in msq_obtain_object_check()
95 return container_of(ipcp, struct msg_queue, q_perm); in msq_obtain_object_check()
212 static void freeque(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in freeque() argument
215 struct msg_queue *msq = container_of(ipcp, struct msg_queue, q_perm); in freeque()
[all …]
Dsem.c418 struct kern_ipc_perm *ipcp; in sem_obtain_lock() local
421 ipcp = ipc_obtain_object_idr(&sem_ids(ns), id); in sem_obtain_lock()
422 if (IS_ERR(ipcp)) in sem_obtain_lock()
423 return ERR_CAST(ipcp); in sem_obtain_lock()
425 sma = container_of(ipcp, struct sem_array, sem_perm); in sem_obtain_lock()
431 if (ipc_valid_object(ipcp)) in sem_obtain_lock()
432 return container_of(ipcp, struct sem_array, sem_perm); in sem_obtain_lock()
440 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&sem_ids(ns), id); in sem_obtain_object() local
442 if (IS_ERR(ipcp)) in sem_obtain_object()
443 return ERR_CAST(ipcp); in sem_obtain_object()
[all …]
Dutil.h115 int ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flg);
163 static inline int ipc_checkid(struct kern_ipc_perm *ipcp, int uid) in ipc_checkid() argument
165 return uid / SEQ_MULTIPLIER != ipcp->seq; in ipc_checkid()