函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This function calls the @func callback against all memory ranges of type* System RAM which are marked as IORESOURCE_SYSTEM_RAM and IORESOUCE_BUSY

函数原型:int walk_system_ram_range(unsigned long start_pfn, unsigned long nr_pages, void *arg, int (*func)(unsigned long , unsigned long , void *))

返回类型:int

参数:

类型参数名称
unsigned longstart_pfn
unsigned longnr_pages
void *arg
int (*func
482  ret等于负EINVAL
484  start等于start_pfn左移PAGE_SHIFT determines the page size
485  end等于start_pfnnr_pages左移PAGE_SHIFT determines the page size 位的值减1
486  flags等于I/O resource extended types 按位或Driver has marked this resource busy
487 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循环
490  pfn等于PFN_UP(start)
491  end_pfn等于PFN_DOWN(end + 1)
492  如果end_pfn大于pfnret = ( * func)(pfn, end_pfn - pfn, arg)
494  如果ret退出
496  start等于end加1
498  返回:ret
调用者
名称描述
page_is_ramThis generic page_is_ram() returns true if specified address is* registered as System RAM in iomem_resource list.