函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\swait.c Create Date:2022-07-27 10:41:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__finish_swait

函数原型:void __finish_swait(struct swait_queue_head *q, struct swait_queue *wait)

返回类型:void

参数:

类型参数名称
struct swait_queue_head *q
struct swait_queue *wait
115  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;* (就绪态)
116  如果非链表为空删除链表项并重新初始化