Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:gen_pool_get - Obtain the gen_pool (if any) for a device*@dev: device to retrieve the gen_pool from*@name: name of a gen_pool or NULL, identifies a particular gen_pool on device* Returns the gen_pool for the device if one is present, or NULL.

Proto:struct gen_pool *gen_pool_get(struct device *dev, const char *name)

Type:struct gen_pool

Parameter:

TypeParameterName
struct device *dev
const char *name
803  p = devres_find(dev, devm_gen_pool_release, devm_gen_pool_match, (void * )name)
805  If Not p Then Return NULL
807  Return p
Caller
NameDescribe
devm_gen_pool_createdevm_gen_pool_create - managed gen_pool_create*@dev: device that provides the gen_pool*@min_alloc_order: log base 2 of number of bytes each bitmap bit represents*@nid: node selector for allocated gen_pool, %NUMA_NO_NODE for all nodes*@name: name of a