rpaphp_add_slot(9)
π rpaphp_add_slot(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for rpaphp_add_slot, and honestly it's giving "small function, big responsibilities." Let's get into it β¨
πΈ NAME πΈ
rpaphp_add_slot β declare a hotplug slot to the hotplug subsystem. that's it, that's the vibe π
π¦ SYNOPSIS π¦
int rpaphp_add_slot (struct device_node *dn );
π ARGUMENTS π
dnβ device node of the slot. literally the thing you're handing over, no cap π«Ά
β¨ DESCRIPTION β¨
okay so here's the tea: this subroutine registers a hotpluggable slot with the PCI hotplug infrastructure. main character energy fr π
when does it get called? two moods:
- typically during boot time β if the hotplug slots are present at boot time π
- later, by the
dlparadd code β if the slot is being dynamically added during runtime π₯
and now the plot twist π β if the device node points at an embedded (built-in) slot, this routine will just return without doing anything, because embedded slots cannot be hotplugged. like, it's not allowed, it's simply not that kind of slot, periodt π
π«Ά good-to-know: to remove a slot, it suffices to call rpaphp_deregister_slot. one call, that's all, slay π
π₯ SEE ALSO π₯
- Kernel file
./drivers/pci/hotplug/rpaphp_core.c set_attention_status(9)get_power_status(9)get_attention_status(9)is_php_dn(9)
go read those next bestie, iykyk πβ
aaaand that's the whole page! π this iconic little entry lives under ./drivers/pci/hotplug, dated October 2026, and it's brought to you as rpaphp_add_slot(9) β mwah, go touch some device nodes π§π
π¦ 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