STRUCT PCI_EPC_MEM(9)
π NAME π
okay bestie, welcome to the Kernel API Manual β this one's struct pci_epc_mem, which is literally the address space of the endpoint controller. that's the whole vibe. β¨
π¦ SYNOPSIS π¦
struct pci_epc_mem {
struct pci_epc_mem_window window;
unsigned long *bitmap;
int pages;
struct mutex lock;
};
like look at her. four fields. flawless. π
π Members π
windowβ the address window of the endpoint controller. that's her whole territory, her little kingdom, no cap πbitmapβ a bitmap whose entire job is managing the PCI address space. she's the one keeping track of what's taken and what's free, main character energy fr πΈpagesβ the number of bits representing the address region. yes queen, count them bits π§lockβ a mutex protecting the bitmap. because two threads touching the bitmap at once is not the vibes, and this lock said "not on my watch" ππ
π₯ SEE ALSO π₯
Kernel file ./include/linux/pci-epc.h β and the whole friend group:
struct pci_epc_map(9)enum pci_epc_aux_resource_type(9)struct pci_epc_aux_resource(9)struct pci_epc_ops(9)struct pci_epc_mem_window(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)
ngl the whole squad is linked above, go read them, iykyk π«Ά
mwah π that's a wrap β sourced fresh from ./include/linux, brought to you by the Kernel API Manual, dated October 2026. 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