pci_epc_set_bar(9)
π
pci_epc_set_bar β like, the Kernel API Manual girlies know β¨
okay so bestie, welcome to the pci_epc_set_bar(9) page from the Kernel API Manual β yes the whole manual, we're fancy now π
β¨ NAME β¨
pci_epc_set_bar β configure a BAR so the host can go assign PCI address space to it π«Ά
πΈ SYNOPSIS πΈ
int pci_epc_set_bar (struct pci_epc *epc , u8 func_no , u8 vfunc_no ,
struct pci_epf_bar *epf_bar );
π¦ ARGUMENTS π¦
epcβ the EPC device that's getting its BAR configured, she's the main character here πfunc_noβ the physical endpoint function number inside the EPC device, iykykvfunc_noβ the virtual endpoint function number, and she lives inside that physical function, nested like a vibe check πepf_barβ thestruct epf_barthat's carrying all the BAR info, no cap
π₯ DESCRIPTION π₯
Invoke this one to configure the BAR of the endpoint device. That's it, that's the tea β
π SEE ALSO π
the kernel file ./drivers/pci/endpoint/pci-epc-core.c β go read her, she ate π
and like the entire extended friend group of epc functions, all of them, periodt:
pci_epc_put(9)pci_epc_get(9)pci_epc_get_first_free_bar(9)pci_epc_get_next_free_bar(9)pci_epc_get_features(9)pci_epc_get_aux_resources_count(9)pci_epc_get_aux_resources(9)pci_epc_stop(9)pci_epc_start(9)pci_epc_raise_irq(9)pci_epc_map_msi_irq(9)pci_epc_get_msi(9)pci_epc_set_msi(9)pci_epc_get_msix(9)pci_epc_set_msix(9)pci_epc_unmap_addr(9)pci_epc_map_addr(9)pci_epc_mem_map(9)pci_epc_mem_unmap(9)pci_epc_clear_bar(9)pci_epc_bar_size_to_rebar_cap(9)pci_epc_write_header(9)pci_epc_add_epf(9)pci_epc_remove_epf(9)pci_epc_linkup(9)pci_epc_linkdown(9)pci_epc_init_notify(9)pci_epc_notify_pending_init(9)pci_epc_deinit_notify(9)pci_epc_bus_master_enable_notify(9)pci_epc_destroy(9)__pci_epc_create(9)__devm_pci_epc_create(9)
anyway that's the whole page, go configure those BARs bestie π this little drop came from ./drivers/pci/endpoint, dated October 2026, and it's a pci_epc_set_bar(9) girly through and through π§β¨
π¦ 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