Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kthread.c Create Date:2022-07-28 09:30:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kthread_blkcg - get associated blkcg css of current kthread* Current thread must be a kthread.

Proto:struct cgroup_subsys_state *kthread_blkcg(void)

Type:struct cgroup_subsys_state

Parameter:Nothing

1234  If flags & I am a kernel thread Then
1235  kthread = to_kthread(current process)
1236  If kthread Then Return blkcg_css
1239  Return NULL
Caller
NameDescribe
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