函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lkg_free - free a blkg*@blkg: blkg to free* Free @blkg which may be partially allocated.

函数原型:static void blkg_free(struct blkcg_gq *blkg)

返回类型:void

参数:

类型参数名称
struct blkcg_gq *blkg
76  如果非blkg则返回
79 i小于Maximum number of blkcg policies allowed to be registered concurrently.* Defined here to simplify include dependency.循环如果pd[i]则
81  pd_free_fn(pd[i])
83  释放内存
84  percpu_ref_exit - undo percpu_ref_init()*@ref: percpu_ref to exit* This function exits @ref
85  释放内存
调用者
名称描述
__blkg_release
blkg_alloclkg_alloc - allocate a blkg*@blkcg: block cgroup the new blkg is associated with*@q: request_queue the new blkg is associated with*@gfp_mask: allocation mask to use* Allocate a new blkg assocating @blkcg and @q.
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_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