函数逻辑报告

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

函数名称:__blkg_lookup - internal version of blkg_lookup()*@blkcg: blkcg of interest*@q: request_queue of interest*@update_hint: whether to update lookup hint with the result or not* This is internal version and shouldn't be used by policy* implementations

函数原型:static inline struct blkcg_gq *__blkg_lookup(struct blkcg *blkcg, struct request_queue *q, bool update_hint)

返回类型:struct blkcg_gq

参数:

类型参数名称
struct blkcg *blkcg
struct request_queue *q
boolupdate_hint
342  如果blkcg恒等于blkcg_root则返回:root_blkg
345  blkg等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().(blkg_hint)
346  如果blkg Pointer to the associated request_queue 恒等于q则返回:blkg
349  返回:blkg_lookup_slowpath(blkcg, q, update_hint)
调用者
名称描述
blkg_createIf @new_blkg is %NULL, this function tries to allocate a new one as* necessary using %GFP_NOWAIT. @new_blkg is always consumed on return.
__blkg_lookup_create__blkg_lookup_create - lookup blkg, try to create one if not there*@blkcg: blkcg of interest*@q: request_queue of interest* Lookup blkg for the @blkcg - @q pair. If it doesn't exist, try to* create one
blkg_lookup_checkPerforms queue bypass and policy enabled checks then looks up blkg.
blkg_conf_preplkg_conf_prep - parse and prepare for per-blkg config update*@blkcg: target block cgroup*@pol: target policy*@input: input string*@ctx: blkg_conf_ctx to be filled* Parse per-blkg config update from @input and initialize @ctx with the* result
blkg_lookuplkg_lookup - lookup blkg for the specified blkcg - q pair*@blkcg: blkcg of interest*@q: request_queue of interest* Lookup blkg for the @blkcg - @q pair. This function should be called* under RCU read lock.