dlpar_remove_pci_slot(9)
π
dlpar_remove_pci_slot β the dlpar_remove_pci_slot(9) glow-up
Okay so bestie, listen. This is a kernel API manual page, section 9, for a little function called dlpar_remove_pci_slot. She's not famous, she's not flashy, but she does exactly one job and she does it. Let's get into it π
β¨ NAME β¨
dlpar_remove_pci_slot β DLPAR remove a PCI I/O Slot
Like, that's it. That's the whole vibe. DLPAR removes a PCI I/O Slot. Iconic behavior, no notes π
β¨ SYNOPSIS β¨
int dlpar_remove_pci_slot (char *drc_name , struct device_node *dn );
Look at her. Two arguments, returns an int. Clean, simple, no cap π«Ά
β¨ ARGUMENTS β¨
drc_nameβ the drc-name of the newly added slot π·οΈ (yes, the manpage really says "newly added" even though this function removes β I don't make the rules, I just report them, and I'm reporting them exactly)dnβ adevice_nodeπ³
β¨ DESCRIPTION β¨
So what she actually does: remove the kernel and hotplug representations of a PCI I/O Slot. Both of them. Kernel representation? Gone. Hotplug representation? Also gone. She's not doing half the job, she's doing the whole thing π₯
And because she's a good little function, she gives you return codes so you know what went down π
Return Codes:
0β Success π (slay, she ate)-ENODEVβ Not a validdrc_nameπ (you passed her something she doesn't recognize, bestie, that's on you)-EIOβ Internal PCI Error π (not your fault, it's giving hardware drama)
fr fr, check that return value. Don't just call her and walk away like nothing happened π
β¨ SEE ALSO β¨
Go meet the rest of the friend group π¦
- Kernel file
./drivers/pci/hotplug/rpadlpar_core.c find_php_slot(9)dlpar_add_slot(9)dlpar_remove_vio_slot(9)dlpar_remove_slot(9)
And that's the whole page, bestie β you made it to the end π§ββοΈπ This little gem lives over in ./drivers/pci/hotplug, and the version/date on the tin says October 2026. Go forth and remove those PCI I/O slots responsibly, iykyk βπ
π¦ 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