acpiphp_get_context(9)
π acpiphp_get_context(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a little function from the kernel's ACPI hotplug glue, and yes she's short, but she's important. Buckle up π
β¨ NAME β¨
acpiphp_get_context β grab the hotplug context and take a reference on it, bestie. That's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
struct acpiphp_context * acpiphp_get_context (struct acpi_device *adev
);
note that the return type is struct acpiphp_context * and it takes exactly one argument β no surprises, no cap π«Ά
π¦ ARGUMENTS π¦
adevβ the ACPI device object you want the context for. that's it. she's just a handle, she's just vibing. π
π₯ DESCRIPTION π₯
okay so here's the one thing you literally cannot skip: call this under acpi_hp_context_lock. π
like, not "eh, maybe", not "if you feel like it" β it's a lock, and you hold it. that's the whole description. short queen, but she means it. π
π SEE ALSO π
the kernel file lives at:
./drivers/pci/hotplug/acpiphp_glue.c
and her whole friend group is here, all of them, no one left out π:
acpiphp_init_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)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)
π reminder bestie: acpi_hp_context_lock or bust. don't be the one who skips the lock, i'm literally begging π
β¨ and that's the page! β¨ this lil icon came to you from the source path ./drivers/pci/hotplug, dated October 2026, and it's acpiphp_get_context(9) through and through. mwah, go hold that lock π«Άππ
π¦ 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