函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Does not allow usage from IRQ disabled, since we must be able to* release IRQs to guarantee bounded hold time.

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

返回类型:void

参数:

类型参数名称
struct swait_queue_head *q
52  LIST_HEAD(tmp)
54  关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & lock)
55  加入二个链表项并重新初始化
56  当非链表为空循环
57  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.( & tmp, typeof( * curr), task_list)
59  wake_up_state(task, Convenience macros for the sake of wake_up(): )
60  删除链表项并重新初始化
62  如果链表为空退出
65  raw_spin_unlock_irq( & lock)
66  关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & lock)
68  raw_spin_unlock_irq( & lock)