Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

Type:void

Parameter:

TypeParameterName
struct rdma_cgroup *cg
struct rdmacg_device *device
struct rdma_cgroup *stop_cg
enum rdmacg_resource_typeindex
212  mutex_lock( & Protects list of resource pools maintained on per cgroup basis* and rdma device list.)
214  When p != stop_cg cycle 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
217  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
219  ss_put - put a css reference*@css: target css* Put a reference obtained via css_get() and css_tryget_online().
Caller
NameDescribe
rdmacg_unchargedmacg_uncharge - hierarchically uncharge rdma resource count*@device: pointer to rdmacg device*@index: index of the resource to uncharge in cgroup in given resource pool
rdmacg_try_chargedmacg_try_charge - hierarchically try to charge the rdma resource*@rdmacg: pointer to rdma cgroup which will own this resource*@device: pointer to rdmacg device*@index: index of the resource to charge in cgroup (resource pool)