| Function report | 
| Source Code: ipc\msg.c | Create Date:2022-07-28 16:41:21 | 
| Last Modify:2020-03-17 22:56:56 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:que() wakes up waiters on the sender and receiver waiting queue,* removes the message queue from message queue ID IDR, and cleans up all the* messages associated with this queue.* msg_ids.rwsem (writer) and the spinlock for this message queue are held
Proto:static void freeque(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct ipc_namespace * | ns | |
| struct kern_ipc_perm * | ipcp | 
| 259 | expunge_all(msq, - EIDRM, & wake_q) | 
| 262 | ipc_unlock_object( & q_perm) | 
| 267 | atomic_dec( & msg_hdrs) | 
| 271 | ipc_update_pid( & pid of last msgsnd , NULL) | 
| 272 | ipc_update_pid( & last receive pid , NULL) | 
| 273 | ipc_rcu_putref( & q_perm, msg_rcu_free) | 
| Name | Describe | 
|---|---|
| msgctl_down | This function handles some msgctl commands which require the rwsem* to be held in write mode.* NOTE: no locks must be held, the rwsem is taken inside this function. | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |