函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\probe_roms.c Create Date:2022-07-27 08:41:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:find_oprom

函数原型:static struct resource *find_oprom(struct pci_dev *pdev)

返回类型:struct resource

参数:

类型参数名称
struct pci_dev *pdev
116  struct resource * oprom = NULL
119 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(adapter_rom_resources)循环
120  res等于adapter_rom_resources[i]
124  如果end恒等于0则退出
127  rom等于isa_bus_to_virt(start)
128  如果probe_kernel_address(): safely attempt to read from a location*@addr: address to read from*@retval: read into this variable* Returns 0 on success, or -EFAULT.(rom + 0x18, offset)不等于0则继续下一循环
131  如果probe_kernel_address(): safely attempt to read from a location*@addr: address to read from*@retval: read into this variable* Returns 0 on success, or -EFAULT.(rom + offset + 0x4, vendor)不等于0则继续下一循环
134  如果probe_kernel_address(): safely attempt to read from a location*@addr: address to read from*@retval: read into this variable* Returns 0 on success, or -EFAULT.(rom + offset + 0x6, device)不等于0则继续下一循环
138  oprom等于res
139  退出
146  oprom等于res
147  退出
151  返回:oprom
调用者
名称描述
pci_map_biosrom
pci_biosrom_size