STRUCT PCI_EPF_BAR(9)
π struct pci_epf_bar(9) π
okay bestie, welcome to the struct pci_epf_bar(9) page from the Kernel API Manual β this is literally the glow-up guide for the BAR of an EPF device, and yes it's as iconic as it sounds π
β¨ NAME β¨
struct pci_epf_bar β the struct that represents the BAR of EPF device π
no cap, that's the whole vibe.
πΈ SYNOPSIS πΈ
here's the whole squad, laid out exactly how the kernel wrote it, don't touch a single character bestie:
struct pci_epf_bar {
dma_addr_t phys_addr;
void *addr;
size_t size;
size_t mem_size;
enum pci_barno barno;
int flags;
unsigned int num_submap;
struct pci_epf_bar_submap *submap;
};
π¦ Members π¦
every member gets their moment, and every one of them ate:
phys_addrβ the physical address that should be mapped to the BAR. that's its whole job fr fr.addrβ the virtual address</virtual> corresponding to thephys_addr. they're a matched set, iykyk πsizeβ the size of the address space present in the BAR. not the vibe size, the real size.mem_sizeβ the size actually allocated to accommodate the iATU alignment requirement. lowkey this one's doing the extra credit work β¨barnoβ BAR number. yeah. that's the number of the BAR. main character energy in its simplest form πflagsβ flags that are set for the BAR. it's giving "tell me what mood you're in today" π©num_submapβ number of entries insubmap. counting is caring π«Άsubmapβ array of subrange descriptors allocated by the caller. Seestruct pci_epf_bar_submapfor the semantics in detail. (yes ms girl, go read that one too, it's linked below π)
π SEE ALSO π
go give these besties a read, they're all in the Kernel file ./include/linux/pci-epf.h:
struct pci_epf_header(9)struct pci_epf_ops(9)struct pci_epc_event_ops(9)struct pci_epf_driver(9)struct pci_epf_bar_submap(9)struct pci_epf_doorbell_msg(9)struct pci_epf(9)struct pci_epf_msix_tbl(9)
and that's the page!! π this little icon came straight out of ./include/linux, dated October 2026, and it's still signed struct pci_epf_bar(9) β so go forth, map those BARs, 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