函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__kthread_parkme

函数原型:static void __kthread_parkme(struct kthread *self)

返回类型:void

参数:

类型参数名称
struct kthread *self
188  循环
198  set_special_state() should be used for those states when the blocking task* can not use the regular condition based wait-loop. In that case we must* serialize against wakeups such that any possible in-flight TASK_RUNNING stores(Used in tsk->state again: )
199  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from退出
202  complete( & parked)
203  schedule()
205  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;* (就绪态)
调用者
名称描述
kthread_parkme
kthread