函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:struct resource *request_resource_conflict(struct resource *root, struct resource *new)

返回类型:struct resource

参数:

类型参数名称
struct resource *root
struct resource *new
283  write_lock( & resource_lock)
284  conflict等于Return the conflict entry if you can't request it
285  write_unlock( & resource_lock)
286  返回:conflict
调用者
名称描述
request_resourcequest_resource - request and reserve an I/O or memory resource*@root: root resource descriptor*@new: resource descriptor desired by caller* Returns 0 for success, negative error code on error.
devm_request_resourcedevm_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