STRUCT PCI_EPF_BAR_SUBMAP(9)
β¨ struct pci_epf_bar_submap β BAR subrange for inbound mapping β¨
okay bestie so this is a page straight out of the Kernel API Manual (yep, that's the manual name, we're fancy now π
) and it's all about struct pci_epf_bar_submap. it's giving "small struct, big job" honestly.
π SYNOPSIS π
struct pci_epf_bar_submap {
dma_addr_t phys_addr;
size_t size;
};
likeβ¦ two fields. two. and yet she's iconic. look at her π«Ά
πΈ Members πΈ
phys_addrβ the target physical/DMA address for this subrange. this is where the thing actually lives, no cap.sizeβ the size of the subrange that's gonna get mapped. how much of the vibe are we covering β¨
π Description π
so here's the tea, bestie β when pci_epf_bar.num_submap is > 0, then pci_epf_bar.submap describes the complete BAR layout. literally the whole picture.
this lets an EPC driver program multiple inbound translation windows for a single BAR β but only when the controller supports it, iykyk. so if your controller's not about that life, this is a no-go π
and the array order? that defines the BAR layout. so submap[0] sits at offset 0, and every one after it immediately follows the previous one. in order. no skipping. main character energy only π
β οΈ lowkey important: the ordering isn't decorative β it is the layout. don't go shuffling the array and expecting good things π
π¦ SEE ALSO π¦
- 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(9)struct pci_epf_doorbell_msg(9)struct pci_epf(9)struct pci_epf_msix_tbl(9)
like, the whole friend group fr fr π go read them, you'll get it π
that's the whole page babes β¨ this one lives over in ./include/linux in the Kernel API Manual, dated October 2026 β so bestie, struct pci_epf_bar_submap(9) is stamped, sealed, and slaying ππ« periodt.
π¦ 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