Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\mqueue.c Create Date:2022-07-28 16:50:57
Last Modify:2020-03-17 23:00:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Returns waiting task that should be serviced first or NULL if none exists

Proto:static struct ext_wait_queue *wq_get_first_waiter(struct mqueue_inode_info *info, int sr)

Type:struct ext_wait_queue

Parameter:

TypeParameterName
struct mqueue_inode_info *info
intsr
688  ptr = prev
689  If ptr == list Then Return NULL
691  Return list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(ptr, structext_wait_queue, list)
Caller
NameDescribe
pipelined_receivepipelined_receive() - if there is task waiting in sys_mq_timedsend()* gets its message and put to the queue (we have one free place for sure).
do_mq_timedsend