_regulator_...atus_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ _regulator_check_status_enabled β€” the vibe check for your regulator ✨

okay so bestie, you're reading a page from the Kernel API Manual and honestly? it's a short one, we love a low-effort icon πŸŽ€ this little function's whole job is to look at a regulator's status and be like "does this count as enabled or not" β€” that's it, that's the plot πŸ’… the actual brains live over in the kernel file ./drivers/regulator/core.c, so go say hi if you want the lore πŸ¦‹


🌸 NAME 🌸

_regulator_check_status_enabled β€” check if regulator status can be interpreted as "regulator is enabled" πŸ‘‘

like, it doesn't change anything, it just ✨interprets✨. no cap, it's giving "let me read the room" energy 🧚


πŸŽ€ SYNOPSIS πŸŽ€

int _regulator_check_status_enabled (struct regulator_dev *rdev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • rdev β€” the regulator device to check 🫢 that's the main character of this whole page, the regulator device you're side-eyeing to find out what's going on with it ✨

πŸ’– RETURN πŸ’–

so here's what you might get back, and every single one matters, so pay attention bestie:

  • 1 β€” if status shows regulator is in enabled state πŸ’š slay, it's on, we're so back
  • 0 β€” if it's not enabled state πŸ’€ okay so it's not on, noted
  • Error Value β€” as received from ops->get_status 😭 like, whatever error came back from ops->get_status gets handed straight to you, no editing, no filtering, no "let me clean that up for you" energy πŸ™ˆ
ngl, that third one is important β€” the function isn't out here inventing new errors or translating anything. it passes along what ops->get_status gave it, fr fr 🫢

πŸ’œ SEE ALSO πŸ’œ

okay this list is iconic in length, like the function is small but the friend group is HUGE 😭 every single one of these, bestie, no skipping:


and that's the whole page, bestie 🫢 short, sweet, and it lives its life in the kernel file ./drivers/regulator/core.c πŸ’– mwah πŸ’‹

this lil cutie comes to you courtesy of ./drivers/regulator, dated October 2026 ⭐ periodt 🌈
πŸ“¦ where this page comes from