devm_of_regulator_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– devm_of_regulator_get(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this is the page for devm_of_regulator_get(9) and it's literally the resource-managed glow-up of of_regulator_get() πŸŽ€


✨ NAME ✨

devm_of_regulator_get β€” Resource managed of_regulator_get() 🫢


🌸 SYNOPSIS 🌸

struct regulator * devm_of_regulator_get (struct device *dev , struct
       device_node *node , const char *id );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device, bestie πŸ’… it's used for dev_printk messages and for managing the resource lifetime (so the cleanup is handled for you, no cap)
  • node β€” the device node for the regulator "consumer" 🌈
  • id β€” the supply name or the regulator ID πŸ‘‘

πŸŽ€ DESCRIPTION πŸŽ€

Managed of_regulator_get. The regulators you get back from this function are automatically regulator_put on driver detach β€” like, you don't have to do the cleanup yourself, it's giving main character energy with zero admin πŸ˜­πŸ’–

See of_regulator_get for more information, iykyk πŸ“–


⭐ SEE ALSO ⭐

Kernel file ./drivers/regulator/devres.c β€” plus the whole friend group πŸ‘‘


πŸ’« and that's the vibe check, bestie πŸ’«

this little icon lives in ./drivers/regulator (that's the source/version, slay) and it's dated October 2026 β€” devm_of_regulator_get(9), periodt πŸ’…πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from