函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kthread_blkcg - get associated blkcg css of current kthread* Current thread must be a kthread.

函数原型:struct cgroup_subsys_state *kthread_blkcg(void)

返回类型:struct cgroup_subsys_state

参数:

1234  如果flags按位与I am a kernel thread
1235  kthread等于to_kthread(当前进程)
1236  如果kthread则返回:blkcg_css
1239  返回:NULL
调用者
名称描述
blkcg_csslkcg_css - find the current css* Find the css associated with either the kthread or the current task.* This may return a dying css, so it is up to the caller to use tryget logic* to confirm it is alive and well.
blk_cgroup_congested
blkcg_maybe_throttle_currentlkcg_maybe_throttle_current - throttle the current task if it has been marked* This is only called if we've been marked with set_notify_resume()