pci_epf_destroy(9)
β¨ pci_epf_destroy β destroy the created PCI EPF device β¨
Okay so real talk, bestie: this is a page straight out of the Kernel API Manual (yes, the 9 section, we're in kernel-land now π§) and it's literally just one tiny little function that undoes a thing. Short page, big slay. Let's get into it π
πΈ SYNOPSIS πΈ
void pci_epf_destroy (struct pci_epf *epf );
That's it. That's the whole vibe check. It returns void, so likeβ¦ nothing comes back. No error code, no status, no lil receipt. It just happens π«Ά
π ARGUMENTS π
epfβ the PCI EPF device that has to be destroyed. Like, this is the exact one you're sending to the shadow realm. It's astruct pci_epf *, and it's the one thing this function wants from you. No cap.
π¦ DESCRIPTION π¦
Invoke this when you need to destroy the PCI EPF device that got created by invoking pci_epf_create. That's the entire story, iykyk β pci_epf_create makes it, pci_epf_destroy un-makes it. Creation and destruction, main character energy on both sides ππ
Heads up bestie: the original page doesn't say anything about what happens if you pass in something weird, so I'm not gonna invent lore. Just destroy the thing you created and we move π
π SEE ALSO π
The kernel file lives at ./drivers/pci/endpoint/pci-epf-core.c β that's where the magic is, go read it, it's giving source-of-truth β
And these icons, all in the same friend group:
pci_epf_unbind(9)pci_epf_bind(9)pci_epf_add_vepf(9)pci_epf_remove_vepf(9)pci_epf_free_space(9)pci_epf_alloc_space(9)pci_epf_assign_bar_space(9)pci_epf_unregister_driver(9)__pci_epf_register_driver(9)pci_epf_create(9)pci_epf_align_inbound_addr(9)
Like, the whole EPF cinematic universe is right there. Go binge it π
That's the page, bestie π This lil masterpiece comes from ./drivers/pci/endpoint and it's dated October 2026 β put it in your calendar, screenshot it, frame it, whatever πβ¨
π¦ 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