Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_cg_rpool_locked

Proto:static struct rdmacg_resource_pool *get_cg_rpool_locked(struct rdma_cgroup *cg, struct rdmacg_device *device)

Type:struct rdmacg_resource_pool

Parameter:

TypeParameterName
struct rdma_cgroup *cg
struct rdmacg_device *device
133  rpool = find_cg_rpool_locked(cg, device)
134  If rpool Then Return rpool
137  rpool = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
138  If Not rpool Then Return ERR_PTR( - ENOMEM)
141  device = device
142  set_all_resource_max_limit(rpool)
144  Initialization list head
145  Initialization list head
146  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
147  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
148  Return rpool
Caller
NameDescribe
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