函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void uncharge_cg_locked(struct rdma_cgroup *cg, struct rdmacg_device *device, enum rdmacg_resource_type index)

返回类型:void

参数:

类型参数名称
struct rdma_cgroup *cg
struct rdmacg_device *device
enum rdmacg_resource_typeindex
168  rpool等于find_cg_rpool_locked(cg, device)
175  如果此条件成立可能性小(为编译器优化)(!rpool)则
176  打印警告信息("Invalid device %p or rdma cgroup %p\n", cg, device)
177  返回
180  usage自减
186  WARN_ON_ONCE(usage < 0)
187  count active user tasks of this pool 自减
188  如果count active user tasks of this pool 恒等于0且al number counts which are set to max 恒等于RDMACG_RESOURCE_MAX
194  free_cg_rpool_locked(rpool)
调用者
名称描述
rdmacg_uncharge_hierarchydmacg_uncharge_hierarchy - hierarchically uncharge rdma resource count*@device: pointer to rdmacg device*@stop_cg: while traversing hirerchy, when meet with stop_cg cgroup* stop uncharging*@index: index of the resource to uncharge in cg in given resource