__pci_hp_register(9)
π __pci_hp_register(9) π
okay bestie, welcome to the Kernel API Manual corner of the group chat β this one is literally about registering a hotplug_slot with the PCI hotplug subsystem, and yes itβs giving main character kernel energy β¨
πΈ NAME πΈ
__pci_hp_register β register a hotplug_slot with the PCI hotplug subsystem π«Ά
β¨ SYNOPSIS β¨
int __pci_hp_register (struct hotplug_slot *slot , struct pci_bus *bus , int devnr , const char *name , struct module *owner , const char *mod_name );
π ARGUMENTS π
slotβ pointer to thestruct hotplug_slotto register πbusβ bus this slot is on πdevnrβ device number π’nameβ name registered with kobject core π·οΈownerβ caller module owner πmod_nameβ caller module name π
π¦ DESCRIPTION π¦
So hereβs the vibe: __pci_hp_register prepares a hotplug slot for in-kernel use and immediately publishes it to user space in one go. literally both steps, same breath, no cap πβ¨
Drivers may alternatively carry out the two steps separately by invoking pci_hp_initialize and pci_hp_add β iykyk, sometimes you want the split version π§
Return situation: 0 if successful, anything else for an error π«‘
π₯ SEE ALSO π₯
- Kernel file
./drivers/pci/hotplug/pci_hotplug_core.cπ __pci_hp_initialize(9)π±pci_hp_add(9)βpci_hp_deregister(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)π
mwah π β source/version: ./drivers/pci/hotplug; date: October 2026; page: __pci_hp_register(9). π
π¦ 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