函数逻辑报告

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 - try and get a blkg reference*@blkg: blkg to get* This is for use when doing an RCU lookup of the blkg. We may be in the midst* of freeing this blkg, so we can only use it if the refcnt is not zero.

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

返回类型:bool

参数:

类型参数名称
struct blkcg_gq *blkg
489  返回:blkgpercpu_ref_tryget - try to increment a percpu refcount*@ref: percpu_ref to try-get* Increment a percpu refcount unless its count already reached zero.* Returns %true on success; %false on failure.
调用者
名称描述
blkcg_maybe_throttle_currentlkcg_maybe_throttle_current - throttle the current task if it has been marked* This is only called if we've been marked with set_notify_resume()
blkiolatency_timer_fn
blkg_tryget_closestlkg_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