enable_slot(9)
π enable_slot(9) β like, the kernel API manual, but make it make sense π
okay bestie, sit down, hydrate, and let me tell you about enable_slot β she's a function in the kernel API manual and honestly? she's kind of a big deal π
β¨ NAME β¨
enable_slot β enable, configure a slot π«Ά
like yes, both. enabling AND configuring. she's multi-talented, no cap.
β¨ SYNOPSIS β¨
void enable_slot (struct acpiphp_slot *slot , bool bridge );
that's it. that's the whole vibe. void return, two args, she does her thing and dips π
β¨ ARGUMENTS β¨
slotβ the slot you wanna enable π this is the actualstruct acpiphp_slot *bestie, the one you're doing the enabling to.bridgeβ abool, and it'strueif the enable is for the whole bridge β not just a single slot π so like, scope check: one slot or the entire bridge? choose wisely.
β¨ DESCRIPTION β¨
okay so this is the part where you gotta pay attention, because it's giving "read the docs before you break prod" energy π
this function should be called per physical slot β not per each slot object in the ACPI namespace. like, physical slot. fr fr. the namespace might have a whole little collection of slot objects and you do NOT call this for every single one of them, you call it for the real, physical slot. that's the whole point. that's the assignment. πΈ
ngl this is the kind of detail that seems small and then absolutely wrecks your day if you get it wrong, so likeβ¦ respect the physical slot π
β¨ SEE ALSO β¨
she's not alone in this codebase, bestie β here's the whole friend group, plus where she actually lives:
- kernel file
./drivers/pci/hotplug/acpiphp_glue.cπ¦ acpiphp_init_context(9)acpiphp_get_context(9)acpiphp_put_context(9)acpiphp_post_dock_fixup(9)acpiphp_add_context(9)acpiphp_max_busnr(9)disable_slot(9)get_slot_status(9)trim_stale_devices(9)acpiphp_check_bridge(9)acpiphp_enumerate_slots(9)acpiphp_remove_slots(9)acpiphp_enable_slot(9)acpiphp_disable_and_eject_slot(9)
(and yes, disable_slot(9) and enable_slot are literally right there next to each other β opposites attract, main character energy both of them π)
aaaand that's the page!! π she lives at ./drivers/pci/hotplug, the page is dated October 2026, and she answers to enable_slot(9) β mwah, go enable some slots responsibly, ily, bye πβ¨
π¦ 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