pci_hp_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

pci_hp_destroy β€” remove hotplug slot from in-kernel use

okay so bestie, this is the page from the Kernel API Manual, and it’s all about cleanly destroying a PCI hotplug slot so it’s no longer in in-kernel use. lowkey important cleanup energy πŸ’…


πŸ› οΈ SYNOPSIS

void pci_hp_destroy (struct hotplug_slot *slot );

πŸŽ€ ARGUMENTS

  • slot β€” pointer to the struct hotplug_slot to destroy. that’s the one getting the goodbye treatment 🫢

πŸ’– DESCRIPTION

so pci_hp_destroy destroys a PCI slot used by a hotplug driver. once this has been called, the driver may no longer invoke hotplug_slot_name to get the slot’s unique name β€” fr fr, that’s the rule.

the driver also no longer needs to handle a ->reset_slot callback from this point on. so after this call, that callback handling is not needed anymore. periodt ✨


πŸ¦‹ SEE ALSO

go read those too, iykyk πŸ‘‘


cute sign-off, bestie: this one’s from ./drivers/pci/hotplug, dated October 2026, and it’s pci_hp_destroy(9). stay slaying πŸŒˆπŸ’–
πŸ“¦ where this page comes from