函数逻辑报告

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
124  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;* (就绪态)
126  如果非链表为空且不修改
127  raw_spin_lock_irqsave( & lock, flags)
128  删除链表项并重新初始化
129  raw_spin_unlock_irqrestore( & lock, flags)
调用者
名称描述
kvm_async_pf_task_wait@interrupt_kernel: Is this called from a routine which interrupts the kernel* (other than user space)?