函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:void

参数:

类型参数名称
struct resource *root
struct resource *new
885  如果parent则返回
888  write_lock( & resource_lock)
889  循环
892  conflict等于Insert a resource into the resource tree. If successful, return NULL,* otherwise return the conflicting resource (compare to __request_resource())
893  如果非conflict退出
895  如果conflict恒等于root退出
899  如果start小于startstart等于start
901  如果end大于endend等于end
904  printk("Expanded resource %s due to conflict with %s\n", name, name)
906  write_unlock( & resource_lock)
调用者
名称描述
e820__reserve_resources_late