函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__walk_iomem_res_desc

函数原型:static int __walk_iomem_res_desc(resource_size_t start, resource_size_t end, unsigned long flags, unsigned long desc, bool first_lvl, void *arg, int (*func)(struct resource *, void *))

返回类型:int

参数:

类型参数名称
resource_size_tstart
resource_size_tend
unsigned longflags
unsigned longdesc
boolfirst_lvl
void *arg
int (*func
401  ret等于负EINVAL
403 start小于end且非Finds the lowest iomem resource that covers part of [@start..@end]. The* caller must specify @start, @end, @flags, and @desc (which may be* IORES_DESC_NONE).* If a resource is found, returns 0 and @*res is overwritten with the part循环
405  ret = ( * func)( & res, arg)
406  如果ret退出
409  start等于end加1
412  返回:ret
调用者
名称描述
walk_iomem_res_descWalks through iomem resources and calls func() with matching resource* ranges. This walks through whole tree and not just first level children.* All the memory ranges which overlap start,end and also match flags and* desc are valid candidates.
walk_system_ram_resThis function calls the @func callback against all memory ranges of type* System RAM which are marked as IORESOURCE_SYSTEM_RAM and IORESOUCE_BUSY.* Now, this function is only for System RAM, it deals with full ranges and* not PFNs
walk_mem_resThis function calls the @func callback against all memory ranges, which* are ranges marked as IORESOURCE_MEM and IORESOUCE_BUSY.