函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\msg.c Create Date:2022-07-27 18:16:34
Last Modify:2020-03-17 22:56:56 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:expunge_all

函数原型:static void expunge_all(struct msg_queue *msq, int res, struct wake_q_head *wake_q)

返回类型:void

参数:

类型参数名称
struct msg_queue *msq
intres
struct wake_q_head *wake_q
240  wake_q_add() - queue a wakeup for 'later' waking
241  WRITE_ONCE(r_msg, 错误号)
调用者
名称描述
freequeque() 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
msgctl_downThis 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.