函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:struct resource *insert_resource_conflict(struct resource *parent, struct resource *new)

返回类型:struct resource

参数:

类型参数名称
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  返回:conflict
调用者
名称描述
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