函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blk-cgroup.h Create Date:2022-07-27 06:56:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lkcg_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.

函数原型:static inline struct cgroup_subsys_state *blkcg_css(void)

返回类型:struct cgroup_subsys_state

参数:

231  css等于kthread_blkcg - get associated blkcg css of current kthread* Current thread must be a kthread.
232  如果css则返回:css
234  返回:循环获得css
调用者
名称描述
bio_associate_blkg_associate_blkg - associate a bio with a blkg*@bio: target bio* Associate @bio with the blkg found from the bio's css and request_queue
__bio_blkcg__bio_blkcg - internal, inconsistent version to get blkcg* DO NOT USE.* This function is inconsistent and consequently is dangerous to use. The* first part of the function returns a blkcg where a reference is owned by the* bio