ENUM STATE(9)
π enum state(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes we're doing kernel internals today, and yes you're gonna slay it. this one is a tiny little enum from the depths of the kernel, but don't let the size fool you, she's iconic in her own small way π
πΈ NAME πΈ
enum state β the ON/OFF state definition, periodt. that's literally her whole job π
π¦ SYNOPSIS π¦
enum state {
OFF ,
ON
};
look at her. two members. no notes. she ate and left zero crumbs π₯ (and yes, note that trailing comma after OFF is in there, we don't editorialize, we just report π«Ά)
π Constants π
these are the members of the enum, and bestie, i need you to read these carefully because they are... a lot π
OFFβ "State is ON"ONβ "State is OFF"
ngl this is exactly what the documentation says, char for char π i'm not gaslighting you, i'm not being cute, i'm just the messenger. the descriptions are swapped relative to the names and that's canon. read it, screenshot it, iykyk π
π SEE ALSO π
the reading list, and it is long, so buckle up bestie π§β¨
Kernel file ./include/linux/mfd/db8500-prcmu.h β then all of these, in this exact order:
enum ret_state(9)enum clk_arm(9)enum clk_gen(9)enum romcode_write(9)enum romcode_read(9)enum ap_pwrst(9)enum ap_pwrst_trans(9)enum hw_acc_state(9)enum dvfs_stat(9)enum sva_mmdsp_stat(9)enum sia_mmdsp_stat(9)enum mbox_to_arm_err(9)enum sia_sva_pwr_policy(9)enum auto_enable(9)enum prcmu_power_status(9)enum prcmu_wdog_id(9)enum ape_opp(9)enum arm_opp(9)enum ddr_opp(9)enum ddr_pwrst(9)struct prcmu_auto_pm_config(9)
like i said. a whole friend group π go say hi to all of them, they're all living in the same header neighborhood π
and that's the page!! short and sweet, just how we like it π
sign-off time: this little gem comes from ./include/linux/mfd, dated October 2026, and yeah β it's enum state(9) all the way down, now go read the other twenty-one pages, bestie, i believe in you πβ¨π¦πΈπ«Ά
π¦ 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