函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:devm_request_resource() - request and reserve an I/O or memory resource*@dev: device for which to request the resource*@root: root of the resource tree from which to request the resource*@new: descriptor of the resource to request

函数原型:int devm_request_resource(struct device *dev, struct resource *root, struct resource *new)

返回类型:int

参数:

类型参数名称
struct device *dev
struct resource *root
struct resource *new
1384  ptr等于devres_alloc(Managed region resource, ptr的长度, GFP_KERNEL)
1385  如果非ptr则返回:负ENOMEM
1388  ptr等于new
1390  conflict等于quest_resource_conflict - request and reserve an I/O or memory resource*@root: root resource descriptor*@new: resource descriptor desired by caller* Returns 0 for success, conflict resource on error.
1391  如果conflict
1392  dev_err(dev, "resource collision: %pR conflicts with %s %pR\n", new, name, conflict)
1394  devres_free(ptr)
1395  返回:负EBUSY
1398  devres_add(dev, ptr)
1399  返回:0