Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sert_resource_expand_to_fit - Insert a resource into the resource tree*@root: root resource descriptor*@new: new resource to insert* Insert a resource into the resource tree, possibly expanding it in order* to make it encompass any conflicting resources.

Proto:void insert_resource_expand_to_fit(struct resource *root, struct resource *new)

Type:void

Parameter:

TypeParameterName
struct resource *root
struct resource *new
885  If parent Then Return
888  write_lock( & resource_lock)
889  cycle
892  conflict = Insert a resource into the resource tree. If successful, return NULL,* otherwise return the conflicting resource (compare to __request_resource())
893  If Not conflict Then Break
895  If conflict == root Then Break
899  If start < start Then start = start
901  If end > end Then end = end
904  printk("Expanded resource %s due to conflict with %s\n", name, name)
906  write_unlock( & resource_lock)