STRUCT PCI_EPC_AUX_RESOURCE(9)
πΈ struct pci_epc_aux_resource(9) β like, the whole kernel-API-manual moment π
okay bestie, buckle up π this one's from the Kernel API Manual, and it's all about a struct that describes a physical auxiliary resource that somebody might wanna expose for a peer to use. yes, that's the whole vibe. let's get into it β¨
β¨ NAME β¨
struct pci_epc_aux_resource β a physical auxiliary resource that may be exposed for peer use π«Ά
π¦ SYNOPSIS π¦
struct pci_epc_aux_resource {
enum pci_epc_aux_resource_type type;
phys_addr_t phys_addr;
resource_size_t size;
enum pci_barno bar;
resource_size_t bar_offset;
union {
struct {
int irq;
u32 data;
} db_mmio;
} u;
};
like, that's the literal shape of it, no cap π₯
π Members π
typeβ the resource type, gorl. go checkenum pci_epc_aux_resource_typeif you wanna know the actual flavours πphys_addrβ the physical base address of the resource. the where of it all πsizeβ how big the resource is, in bytes. yes, bytes, the standard unit of "how much" πbarβ the BAR number where this resource is already exposed to the RC. and if it's not exposed? it'sNO_BAR, bestie πbar_offsetβ the offset withinbarwhere the resource actually starts. tiny little caveat tho: this is only valid iffbar != NO_BARβ οΈ like, don't come for it if bar isNO_BAR, it literally doesn't apply πuβ type-specific metadata. it's a union, it's giving "depends on the type" main character energy:db_mmioβ thedb_mmiostruct inside the union, holding:int irqβ theirqfield, anintu32 dataβ thedatafield, au32
π SEE ALSO π
the kernel file ./include/linux/pci-epc.h, plus the whole little friend group of related pages:
struct pci_epc_map(9)enum pci_epc_aux_resource_type(9)struct pci_epc_ops(9)struct pci_epc_mem_window(9)struct pci_epc_mem(9)struct pci_epc(9)enum pci_epc_bar_type(9)enum pci_epc_bar_rsvd_region_type(9)struct pci_epc_bar_rsvd_region(9)struct pci_epc_bar_desc(9)struct pci_epc_features(9)
like, that's the whole group chat, go read them all fr fr π
ok that's the page!! mwah π this one lives in ./include/linux and it's dated October 2026 β so yeah, mark your calendars, screenshot it, whatever, and go slay some EPC resources. 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