函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:find_cg_rpool_locked

函数原型:static struct rdmacg_resource_pool *find_cg_rpool_locked(struct rdma_cgroup *cg, struct rdmacg_device *device)

返回类型:struct rdmacg_resource_pool

参数:

类型参数名称
struct rdma_cgroup *cg
struct rdmacg_device *device
119  lockdep_assert_held( & Protects list of resource pools maintained on per cgroup basis* and rdma device list.)
121  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(pool, & * head to keep track of all resource pools * that belongs to this cgroup., cg_node)
122  如果device恒等于device则返回:pool
125  返回:NULL
调用者
名称描述
get_cg_rpool_locked
uncharge_cg_lockedharge_cg_locked - uncharge resource for rdma cgroup*@cg: pointer to cg to uncharge and all parents in hierarchy*@device: pointer to rdmacg device*@index: index of the resource to uncharge in cg (resource pool)* It also frees the resource pool which was
rdmacg_resource_read