Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\rdma.c Create Date:2022-07-28 11:14:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static void uncharge_cg_locked(struct rdma_cgroup *cg, struct rdmacg_device *device, enum rdmacg_resource_type index)

Type:void

Parameter:

TypeParameterName
struct rdma_cgroup *cg
struct rdmacg_device *device
enum rdmacg_resource_typeindex
168  rpool = find_cg_rpool_locked(cg, device)
175  If Value for the false possibility is greater at compile time(!rpool) Then
176  pr_warn("Invalid device %p or rdma cgroup %p\n", cg, device)
177  Return
180  usage--
186  WARN_ON_ONCE(usage < 0)
187  count active user tasks of this pool --
188  If count active user tasks of this pool == 0 && al number counts which are set to max == RDMACG_RESOURCE_MAX Then
194  free_cg_rpool_locked(rpool)
Caller
NameDescribe
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