函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\resource.c Create Date:2022-07-27 10:05:24
Last Modify:2022-05-22 11:14:39 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__devm_request_region

函数原型:struct resource *__devm_request_region(struct device *dev, struct resource *parent, resource_size_t start, resource_size_t n, const char *name)

返回类型:struct resource

参数:

类型参数名称
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  如果非dr则返回: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  如果resdevres_add(dev, dr)
1464  否则devres_free(dr)
1467  返回:res