dlpar_remove_pci_slot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” a device_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 valid drc_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 πŸ¦‹


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