STRUCT PCI_EPC_EVENT_OPS(9)
β¨ struct pci_epc_event_ops β it's giving "kernel API manual" energy β¨
okay so bestie, welcome to the glow-up of struct pci_epc_event_ops(9) from the Kernel API Manual π literally the whole point of this page is one struct, and she is iconic.
πΈ NAME πΈ
struct pci_epc_event_ops β the callbacks for capturing the EPC events π
π¦ SYNOPSIS π¦
struct pci_epc_event_ops {
int (*epc_init)(struct pci_epf *epf);
void (*epc_deinit)(struct pci_epf *epf);
int (*link_up)(struct pci_epf *epf);
int (*link_down)(struct pci_epf *epf);
int (*bus_master_enable)(struct pci_epf *epf);
};
no cap, that's the whole struct, copied exactly, not a single character touched π
π Members π
okay so these are the function pointers she's serving, one per vibe check:
epc_initβ the callback for the EPC initialization complete event β¨ like, "we're done setting up, main character has entered the building"epc_deinitβ the callback for the EPC deinitialization event π the goodbye moment, she's leaving the group chatlink_upβ the callback for the EPC link up event π good news alert, the link is uplink_downβ the callback for the EPC link down event π the sad one, the link said "it's not you it's me"bus_master_enableβ the callback for the EPC Bus Master Enable event π₯ she's officially allowed to boss the bus around
note: every single one of these takes astruct pci_epf *epfβ that's the pointer they all get handed, fr fr. and heads up,epc_init,link_up,link_downandbus_master_enablereturnint, butepc_deinitreturnsvoid(she gives nothing back, and that's valid π«Ά).
π§ SEE ALSO π§
go read the kernel file ./include/linux/pci-epf.h β that's the mothership, bestie π
and then these absolute legends, iykyk:
struct pci_epf_header(9)struct pci_epf_ops(9)struct pci_epf_driver(9)struct pci_epf_bar_submap(9)struct pci_epf_bar(9)struct pci_epf_doorbell_msg(9)struct pci_epf(9)struct pci_epf_msix_tbl(9)
and that's the page, bestie π mwah π β straight out of ./include/linux, dated October 2026, still filed under struct pci_epc_event_ops(9) because she ate and left no crumbs πβ¨
π¦ 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