Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sert_resource_conflict - Inserts resource in the resource tree*@parent: parent of the new resource*@new: new resource to insert* Returns 0 on success, conflict resource if the resource can't be inserted

Proto:struct resource *insert_resource_conflict(struct resource *parent, struct resource *new)

Type:struct resource

Parameter:

TypeParameterName
struct resource *parent
struct resource *new
850  write_lock( & resource_lock)
851  conflict = Insert a resource into the resource tree. If successful, return NULL,* otherwise return the conflicting resource (compare to __request_resource())
852  write_unlock( & resource_lock)
853  Return conflict
Caller
NameDescribe
insert_resourcesert_resource - Inserts a resource in the resource tree*@parent: parent of the new resource*@new: new resource to insert* Returns 0 on success, -EBUSY if the resource can't be inserted