acpiphp_add_context(9)
π NAME π
okay so bestie, this is from the Kernel API Manual and it's giving "one tiny function with one very specific job" energy β¨
acpiphp_add_context β adds an ACPIPHP context to an ACPI device object. That's the whole assignment, no cap. π
β¨ SYNOPSIS β¨
acpi_status acpiphp_add_context (acpi_handle handle , u32 lvl , void
*data , void **rv );
like, look at her. four arguments, one acpi_status return, absolutely iconic behavior π
π ARGUMENTS π
handleβ the ACPI handle of the object you're adding a context to. this is the main character of the function ngl πlvlβ not used. literally sitting there looking pretty. we respect her anyway π«Άdataβ the object's parent ACPIPHP bridge. that's the vibe, that's the context provider πrvβ not used. another passenger on the function-signature bus. no thoughts, just vibes πΈ
π¦ SEE ALSO π¦
Kernel file: ./drivers/pci/hotplug/acpiphp_glue.c
and the whole friend group of related functions, fr fr:
acpiphp_init_context(9)acpiphp_get_context(9)acpiphp_put_context(9)acpiphp_post_dock_fixup(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)
mwah π this lil page lives under ./drivers/pci/hotplug and is dated October 2026 β go forth and add those contexts, bestie π§β¨
π¦ 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