函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_cg_rpool_locked

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

返回类型:struct rdmacg_resource_pool

参数:

类型参数名称
struct rdma_cgroup *cg
struct rdmacg_device *device
133  rpool等于find_cg_rpool_locked(cg, device)
134  如果rpool则返回:rpool
137  rpool等于分配内存并置零
138  如果非rpool则返回:错误号
141  device等于device
142  set_all_resource_max_limit(rpool)
144  初始化链表头
145  初始化链表头
146  添加链表项
147  添加链表项
148  返回:rpool
调用者
名称描述
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)
rdmacg_resource_set_max