ENUM STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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