__pci_hp_initialize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __pci_hp_initialize(9) πŸ’…

okay so bestie, this one is from the Kernel API Manual, and it is literally about preparing a hotplug slot for in-kernel use. ✨ No cap, all the details are right here.


πŸŽ€ NAME πŸŽ€

__pci_hp_initialize β€” prepare hotplug slot for in-kernel use 🫢

🌸 SYNOPSIS 🌸

int __pci_hp_initialize (struct hotplug_slot *slot , struct pci_bus *bus
, int devnr , const char *name , struct module *owner , const char
*mod_name );

✨ ARGUMENTS ✨

  • slot β€” pointer to the struct hotplug_slot to initialize. πŸ’–
  • bus β€” bus this slot is on. 🚌
  • devnr β€” slot number. πŸ”’
  • name β€” name registered with kobject core. 🏷️
  • owner β€” caller module owner. πŸ‘‘
  • mod_name β€” caller module name. πŸ“›

πŸ’œ DESCRIPTION πŸ’œ

Allocate and fill in a PCI slot for use by a hotplug driver. 🌈

Once this has been called, the driver may invoke hotplug_slot_name to get the slot's unique name. πŸ¦‹

The driver must be prepared to handle a ->reset_slot callback from this point on. 🚨

Returns 0 on success or a negative int on error. βœ…/❌

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/pci/hotplug/pci_hotplug_core.c πŸ“


mwah πŸ’‹ β€” the source/version is ./drivers/pci/hotplug, and the date on this cutie is October 2026. ⭐

πŸ“¦ where this page comes from