Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\probe_roms.c Create Date:2022-07-28 07:41:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:find_oprom

Proto:static struct resource *find_oprom(struct pci_dev *pdev)

Type:struct resource

Parameter:

TypeParameterName
struct pci_dev *pdev
116  struct resource * oprom = NULL
119  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(adapter_rom_resources) cycle
120  res = adapter_rom_resources[i]
124  If end == 0 Then Break
127  rom = isa_bus_to_virt(start)
128  If 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 Then Continue
131  If 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 Then Continue
134  If 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 Then Continue
138  oprom = res
139  Break
146  oprom = res
147  Break
151  Return oprom
Caller
NameDescribe
pci_map_biosrom
pci_biosrom_size