| Function report | 
| Source Code: kernel\cgroup\rdma.c | Create Date:2022-07-28 11:14:59 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:dmacg_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)
Proto:int rdmacg_try_charge(struct rdma_cgroup **rdmacg, struct rdmacg_device *device, enum rdmacg_resource_type index)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct rdma_cgroup ** | rdmacg | |
| struct rdmacg_device * | device | |
| enum rdmacg_resource_type | index | 
| 266 | ret = 0 | 
| 268 | If index >= RDMACG_RESOURCE_MAX Then Return -EINVAL | 
| 275 | cg = get_current_rdmacg() | 
| 277 | mutex_lock( & Protects list of resource pools maintained on per cgroup basis* and rdma device list.) | 
| 279 | rpool = get_cg_rpool_locked(p, device) | 
| 283 | Else | 
| 297 | Return 0 | 
| 299 | err : | 
| 302 | Return ret | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |