函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ss_add

函数原型:static inline void ss_add(struct msg_queue *msq, struct msg_sender *mss, size_t msgsz)

返回类型:void

参数:

类型参数名称
struct msg_queue *msq
struct msg_sender *mss
size_tmsgsz
185  tsk等于当前进程
186  msgsz等于msgsz
187  set_current_state() includes a barrier so that the write of current->state* is correctly serialised wrt the caller's subsequent test of whether to* actually sleep:* for (;;) {* set_current_state(TASK_UNINTERRUPTIBLE);* if (!need_sleep)* break;* (睡眠态)
188  添加链表项
调用者
名称描述
do_msgsnd