函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-27 18:31:51
Last Modify:2020-03-17 23:13:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__bio_associate_blkg - associate a bio with the a blkg*@bio: target bio*@blkg: the blkg to associate* This tries to associate @bio with the specified @blkg. Association failure* is handled by walking up the blkg tree. Therefore, the blkg associated can

函数原型:static void __bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg)

返回类型:void

参数:

类型参数名称
struct bio *bio
struct blkcg_gq *blkg
2084  _disassociate_blkg - puts back the blkg reference if associated*@bio: target bio* Helper to disassociate the blkg from @bio if a blkg is associated.
2086  * 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.等于lkg_tryget_closest - try and get a blkg ref on the closet blkg*@blkg: blkg to get* This needs to be called rcu protected. As the failure mode here is to walk* up the blkg tree, this ensure that the blkg->parent pointers are always* valid
调用者
名称描述
bio_associate_blkg_from_css_associate_blkg_from_css - associate a bio with a specified css*@bio: target bio*@css: target css* Associate @bio with the blkg found by combining the css's blkg and the* request_queue of the @bio. This falls back to the queue's root_blkg if
bio_clone_blkg_association_clone_blkg_association - clone blkg association from src to dst bio*@dst: destination bio*@src: source bio