函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static inline struct blkcg_gq *blkg_tryget_closest(struct blkcg_gq *blkg)

返回类型:struct blkcg_gq

参数:

类型参数名称
struct blkcg_gq *blkg
503  struct blkcg_gq * ret_blkg = NULL
505  WARN_ON_ONCE(!rcu_read_lock_held())
507 blkg循环
509  ret_blkg等于blkg
510  退出
512  blkg等于 all non-root blkcg_gq's are guaranteed to have access to parent
515  返回:ret_blkg
调用者
名称描述
__bio_associate_blkg__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