hv_pcifront_read_config(9)
π hv_pcifront_read_config(9) π
okay bestie, this is the Kernel API Manual page for hv_pcifront_read_config(9), and we're folding that name right in near the top so you know exactly what's up. It's literally about reading configuration space, and it's giving PCI bus main character energy. π¦
β¨ NAME β¨
hv_pcifront_read_config β read configuration space. That's the whole plot, no cap. π
πΈ SYNOPSIS πΈ
The call is exactly this:
int hv_pcifront_read_config (struct pci_bus *bus , unsigned int devfn ,
int where , int size , u32 *val );
π ARGUMENTS π
busβ the PCI Bus structure. That's the bus context, bestie. πdevfnβ device/function. Yep, which device/function we're dealing with.whereβ offset from base. That's the config-space offset.sizeβ byte/word/dword. Those are the size options.valβ value to be read. That's the value being read. π
π₯ RETURN π₯
PCIBIOS_SUCCESSFULβ this is what you get on success. πPCIBIOS_DEVICE_NOT_FOUNDβ this is what you get on failure. π
π SEE ALSO π
The kernel file to peek at is ./drivers/pci/controller/pci-hyperv.c. And here is the whole related-refs friend group, every single one, periodt:
struct hv_msi_desc(9)struct hv_msi_desc2(9)struct tran_int_desc(9)hv_irq_retarget_interrupt(9)hv_pci_generic_compl(9)devfn_to_wslot(9)wslot_to_devfn(9)_hv_pcifront_read_config(9)_hv_pcifront_write_config(9)hv_pcifront_write_config(9)hv_pci_read_config_compl(9)hv_read_config_block(9)hv_pci_write_config_compl(9)hv_write_config_block(9)hv_register_block_invalidate(9)hv_msi_free(9)hv_compose_msi_msg(9)hv_pcie_init_irq_domain(9)get_bar_size(9)survey_child_resources(9)prepopulate_bars(9)create_root_hv_pci_bus(9)q_resource_requirements(9)new_pcichild_device(9)get_pcichild_wslot(9)pci_devices_present_work(9)hv_pci_start_relations_work(9)hv_pci_devices_present(9)hv_pci_devices_present2(9)hv_eject_device_work(9)hv_pci_eject_device(9)hv_pci_onchannelcallback(9)hv_pci_protocol_negotiation(9)hv_pci_free_bridge_windows(9)hv_pci_allocate_bridge_windows(9)hv_allocate_config_window(9)hv_pci_enter_d0(9)hv_pci_query_relations(9)hv_send_resources_allocated(9)hv_send_resources_released(9)hv_pci_probe(9)hv_pci_remove(9)
Cute sign-off: this page's source path is ./drivers/pci/controller, its version/date stamp is October 2026, and the page is hv_pcifront_read_config(9). Bye bestie, go read some configuration space and slay π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms