regulator_get_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– regulator_get_mode(9) πŸ’–

okay so bestie, welcome to regulator_get_mode(9) from the Kernel API Manual β€” yes, that manual. this is the little kernel API page that’s literally about getting the regulator operating mode. no cap. πŸ’…


✨ NAME ✨

regulator_get_mode β€” get regulator operating mode 🫢

✨ SYNOPSIS ✨

unsigned int regulator_get_mode (struct regulator *regulator );

the way that function signature ate, honestly. unsigned int returning, struct regulator *regulator as the argument, trailing space and all β€” we keep it exact, periodt. πŸ’–

πŸŽ€ ARGUMENTS πŸŽ€

  • regulator β€” regulator source. that’s the source, bestie; the regulator we’re checking. πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

Get the current regulator operating mode. that’s it, that’s the whole assignment. it’s giving β€œshort king” of a description, but it’s literally the current operating mode of the regulator. main character energy, honestly. πŸ”₯

πŸ”₯ RETURN πŸ”₯

Current operating mode as REGULATOR_MODE_* values, or a negative error number on failure. so you get the mode as one of those REGULATOR_MODE_* values, or on failure it’s a negative error number. vibe check: negative number = not slaying. 😭

🌈 SEE ALSO 🌈

as always, kernel file: ./drivers/regulator/core.c. and here’s the full squad roll call β€” every ref, no skips, iykyk:


okay that’s the page, bestie. source: ./drivers/regulator; dated October 2026; page: regulator_get_mode(9). mwah, byeee πŸ’‹βœ¨

πŸ“¦ where this page comes from