pci_hp_deregister(9)
π pci_hp_deregister β the bye-bye function π
okay so real talk, this is a page from the Kernel API Manual (yes bestie, the kernel has lore too) and it's all about pci_hp_deregister, which is the function you call when you want a hotplug_slot to β¨leaveβ¨ the PCI hotplug subsystem. breaking up, but make it kernel.
πΈ SYNOPSIS πΈ
Like, the whole entire signature. Look at her go:
void pci_hp_deregister (struct hotplug_slot *slot );
no return value, no drama, just vibes. void queen π
π ARGUMENTS π
slotβ pointer to thestruct hotplug_slotyou wanna deregister. that's it. that's the whole argument. it's giving "one job and she's doing it" π
π¦ DESCRIPTION π¦
okay so here's the tea β: the slot must have been registered with the pci hotplug subsystem previously, and it had to get there through a call to pci_hp_register.
so like... bestie, do not just hand this function a random slot you found lying around. it needs to have already been through pci_hp_register first, otherwise you're not deregistering anything, you're just being chaotic. no cap π
β οΈ ngl this one's important: the slot must have been registered with the pci hotplug subsystem previously with a call to pci_hp_register. that's a requirement, not a suggestion π
π SEE ALSO π
the friend group π«Ά β go read these too:
- Kernel file
./drivers/pci/hotplug/pci_hotplug_core.c __pci_hp_register(9)__pci_hp_initialize(9)pci_hp_add(9)pci_hp_del(9)pci_hp_destroy(9)pci_hp_ignore_link_change(9)pci_hp_unignore_link_change(9)pci_hp_spurious_link_change(9)
and that's the whole page bestie, you ate that π β¨
mwah, ily, go forth and deregister responsibly π β this cutie lives in ./drivers/pci/hotplug, dated October 2026, and yes it's still part of the Kernel API Manual fr fr ππ
π¦ 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