choices_show(9)
π choices_show(9) β like, the Kernel API Manual one, bestie
okay so real talk: this is choices_show(9), straight out of the Kernel API Manual, and she's here to show you the available profile choices β¨ β that's literally her whole job, no cap.
πΈ NAME πΈ
choices_show β show the available profile choices π
β¨ SYNOPSIS β¨
ssize_t choices_show (struct device *dev , struct device_attribute *attr
, char *buf );
yep, that's the whole signature β three args, one ssize_t return, iconic behavior only π«Ά
π¦ ARGUMENTS π¦
devβ the device π» (the main character of this little story, honestly)attrβ the attribute π·οΈbufβ the buffer to write to π (this is where the magic gets scribbled down)
π RETURN π
She returns the number of bytes written π β that's it, that's the whole vibe check.
π SEE ALSO π
ok so here's the whole friend group π β the kernel file ./drivers/acpi/platform_profile.c and every one of these absolute legends:
_commmon_choices_show(9)(yes, three m's, that's not me being messy, that's literally how it's spelled, don't come for me π)_store_class_profile(9)_notify_class_profile(9)get_class_profile(9)name_show(9)profile_show(9)profile_store(9)_aggregate_choices(9)_remove_hidden_choices(9)platform_profile_choices_show(9)_aggregate_profiles(9)_store_and_notify(9)platform_profile_show(9)platform_profile_store(9)platform_profile_notify(9)platform_profile_cycle(9)platform_profile_register(9)platform_profile_remove(9)devm_platform_profile_register(9)
like, that's the entire group chat and every single one of them ate π₯ go read them, iykyk π
ngl bestie, this page is short and sweet β but every single one of those cross-refs is fr fr part of the family, so don't skip them just because they're not in the spotlight. periodt. β
mwah, that's a wrap π this one lives over in ./drivers/acpi, and she was last touched in October 2026 β so go forth and show those choices, you absolute icon π§π
π¦ 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