Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\resource.c Create Date:2022-07-28 09:05:36
Last Modify:2022-05-22 11:14:39 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__devm_request_region

Proto:struct resource *__devm_request_region(struct device *dev, struct resource *parent, resource_size_t start, resource_size_t n, const char *name)

Type:struct resource

Parameter:

TypeParameterName
struct device *dev
struct resource *parent
resource_size_tstart
resource_size_tn
const char *name
1449  struct region_devres * dr = NULL
1452  dr = devres_alloc(devm_region_release, sizeof(structregion_devres), GFP_KERNEL)
1454  If Not dr Then Return NULL
1457  parent = parent
1458  start = start
1459  n = n
1461  res = __request_region - create a new busy resource region*@parent: parent resource descriptor*@start: resource start address*@n: resource region size*@name: reserving caller's ID string*@flags: IO resource flags
1462  If res Then devres_add(dev, dr)
1464  Else devres_free(dr)
1467  Return res