cpqhp_find_slot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cpqhp_find_slot(9) ✨

okay so this is a page from the Kernel API Manual, and honestly? it's a little baby page and it's iconic for it πŸ’… like, three sections, zero fluff, all business β€” we love a minimal queen.


πŸ’– NAME πŸ’–

cpqhp_find_slot β€” literally just: find the struct slot of a given device πŸ”πŸ‘‘

like that's the whole job. you hand it a device, it hands you the slot. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct slot * cpqhp_find_slot (struct controller *ctrl , u8 device );

it's giving "short function signature, big responsibilities" 😭 note the return type bestie β€” it's a struct slot *, so you're getting a pointer back, not a whole struct copy. periodt.


🌸 ARGUMENTS 🌸

  • ctrl β€” scan lots of this controller πŸŽ›οΈ like, this is the controller you're gonna rummage through. it's the search zone.
  • device β€” the device id to find πŸ”Ž a u8, so keep it smol and keep it valid. this is the thing we're hunting for.

that's it. two args. she's low maintenance 🫢

ngl there are no options, no env vars, no exit statuses, no signals on this one β€” the whole page is just this. sometimes simplicity is the moment ✨

πŸŽ€ SEE ALSO πŸŽ€

bestie, this is the part where the friend group shows up 🌈 all of these live in the kernel file ./drivers/pci/hotplug/cpqphp_ctrl.c and honestly it's a whole crew:

iykyk πŸ”₯ that's the entire PCI hotplug extended universe right there.


okay bye bestie, go find your slot πŸ’œ

this little page lives under ./drivers/pci/hotplug and it was dated October 2026 β€” so yeah, fresh off the presses, timestamped and slaying πŸŽ€πŸ’«

πŸ“¦ where this page comes from