Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__walk_iomem_res_desc

Proto: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 *))

Type:int

Parameter:

TypeParameterName
resource_size_tstart
resource_size_tend
unsigned longflags
unsigned longdesc
boolfirst_lvl
void *arg
int (*func
401  ret = -EINVAL
403  When start < end && Not 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 cycle
405  ret = ( * func)( & res, arg)
406  If ret Then Break
409  start = end + 1
412  Return ret
Caller
NameDescribe
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.