Lines Matching refs:msg_ids
92 static struct ipc_ids msg_ids; variable
94 #define msg_lock(id) ((struct msg_queue*)ipc_lock(&msg_ids,id))
95 #define msg_unlock(id) ipc_unlock(&msg_ids,id)
96 #define msg_rmid(id) ((struct msg_queue*)ipc_rmid(&msg_ids,id))
98 ipc_checkid(&msg_ids,&msq->q_perm,msgid)
100 ipc_buildid(&msg_ids, id, seq)
110 ipc_init_ids(&msg_ids,msg_ctlmni); in msg_init()
125 id = ipc_addid(&msg_ids, &msq->q_perm, msg_ctlmni); in newque()
308 down(&msg_ids.sem); in sys_msgget()
311 else if ((id = ipc_findkey(&msg_ids, key)) == -1) { /* key not used */ in sys_msgget()
328 up(&msg_ids.sem); in sys_msgget()
453 down(&msg_ids.sem); in sys_msgctl()
455 msginfo.msgpool = msg_ids.in_use; in sys_msgctl()
463 max_id = msg_ids.max_id; in sys_msgctl()
464 up(&msg_ids.sem); in sys_msgctl()
476 if(cmd == MSG_STAT && msqid >= msg_ids.size) in sys_msgctl()
523 down(&msg_ids.sem); in sys_msgctl()
568 up(&msg_ids.sem); in sys_msgctl()
860 down(&msg_ids.sem); in sysvipc_msg_read_proc()
863 for(i = 0; i <= msg_ids.max_id; i++) { in sysvipc_msg_read_proc()
896 up(&msg_ids.sem); in sysvipc_msg_read_proc()