STRUCT PCI_EPC_MEM_WINDOW(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct pci_epc_mem_window(9)

okay bestie, so this is a page straight outta the Kernel API Manual β€” it's struct pci_epc_mem_window(9), and it's genuinely one of the more chill structs you'll meet today. no cap.


✨ NAME ✨

struct pci_epc_mem_window β€” literally just describes the address window of the endpoint controller πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct pci_epc_mem_window {
    phys_addr_t phys_base;
    size_t size;
    size_t page_size;
 };

that's the whole thing. three fields. iconic, tbh. 🌸


πŸ‘‘ Members πŸ‘‘

🌈 phys_base

the physical base address of the PCI address window β€” like, where it physically starts, fr fr.

πŸ“ size

the size of the PCI address window. how much room we're working with, bestie.

🧚 page_size

size of each page ✨ (yes, that's it β€” one page's worth of page-ness).

lowkey the whole struct is just "where it starts, how big it is, and how it's paged." vibe check passed πŸ’―

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/linux/pci-epc.h
  • 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(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, go read all of those too, iykyk 🫢

mwah πŸ’‹ β€” this cutie lives in ./include/linux, and the version/date stamp on it is October 2026. so it's giving very much future-forward main character energy. mark your calendars bestie πŸ—“οΈβœ¨

πŸ“¦ where this page comes from