STRUCT PCI_EPC_EVENT_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 chat
  • link_up β€” the callback for the EPC link up event 🌈 good news alert, the link is up
  • link_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 a struct pci_epf *epf β€” that's the pointer they all get handed, fr fr. and heads up, epc_init, link_up, link_down and bus_master_enable return int, but epc_deinit returns void (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