get_slot_status(9)
β¨ get_slot_status(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one's from the (9) section, which is giving "deep kernel lore, not for the faint of heart" energy π
and today's main character is get_slot_status.
πΈ NAME πΈ
get_slot_status β literally just, get the ACPI slot status π
π¦ SYNOPSIS π¦
unsigned int get_slot_status (struct acpiphp_slot *slot );
π ARGUMENTS π
slotβ your ACPI PHP slot β¨ that's it, that's the whole vibe, you hand her a slot and she tells you things about it π«Ά
π₯ DESCRIPTION π₯
okay so here's the tea, three scenarios, no cap βοΈ
- If a slot has
_STAfor each function and any one of them returned a non-zero status β she returns it. periodt. π - If a slot doesn't have
_STA, and any one of its functions' configuration space is configured β she returns0x0fas a_STA. iconic workaround behavior, honestly π - Otherwise? She returns
0. that's it. zero. the void. π
π SEE ALSO π
the whole friend group fr fr, check the 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)enable_slot(9)disable_slot(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 that's the whole page, bestie π mwah π
this lil masterpiece lives in ./drivers/pci/hotplug, dated October 2026, and it's filed as get_slot_status(9) β go forth and check those slot statuses, 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