Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blk-cgroup.h Create Date:2022-07-28 05:57:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__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

Proto:static inline struct blkcg *__bio_blkcg(struct bio *bio)

Type:struct blkcg

Parameter:

TypeParameterName
struct bio *bio
258  If bio && * Represents the association of the css and request_queue for the bio. * If a bio goes direct to device, it will not have a blkg as it will * not have a request_queue associated with it. The reference is put * on release of the bio. Then Return blkcg
260  Return css_to_blkcg(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.)
Caller
NameDescribe
bfq_get_queue