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_associate_blkcg - associate blkcg to current kthread*@css: the cgroup info* Current thread must be a kthread. The thread is running jobs on behalf of* other threads. In some cases, we expect the jobs attach cgroup info of

Proto:void kthread_associate_blkcg(struct cgroup_subsys_state *css)

Type:void

Parameter:

TypeParameterName
struct cgroup_subsys_state *css
1208  If Not (flags & I am a kernel thread ) Then Return
1210  kthread = to_kthread(current process)
1211  If Not kthread Then Return
1214  If blkcg_css Then
1215  ss_put - put a css reference*@css: target css* Put a reference obtained via css_get() and css_tryget_online().
1216  blkcg_css = NULL
1218  If css Then
1219  ss_get - obtain a reference on the specified css*@css: target css* The caller must already have a reference.
1220  blkcg_css = css