函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The thing about the wake_up_state() return value; I think we can ignore it.* If for some reason it would return 0, that means the previously waiting* task is already running, so it will observe condition true (or has already).

函数原型:void swake_up_locked(struct swait_queue_head *q)

返回类型:void

参数:

类型参数名称
struct swait_queue_head *q
26  如果链表为空则返回
29  curr等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & task_list, typeof( * curr), task_list)
30  唤醒中断线程
31  删除链表项并重新初始化
调用者
名称描述
swake_up_one