Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:struct resource *request_resource_conflict(struct resource *root, struct resource *new)

Type:struct resource

Parameter:

TypeParameterName
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  Return conflict
Caller
NameDescribe
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