devm_regulat...et_exclusive(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ devm_regulator_get_exclusive(9) ✨

okay bestie, buckle up β€” this one lives in the Kernel API Manual (the devm_regulat...et_exclusive(9) page, yes the title is truncated like that, we love a mysterious queen πŸ’…) and it's all about grabbing a regulator exclusively and having the kernel clean up after you like the responsible main character it is 🫢


🌸 NAME 🌸

devm_regulator_get_exclusive β€” it's the resource-managed glow-up of regulator_get_exclusive(), literally the same energy but with automatic cleanup ✨


πŸŽ€ SYNOPSIS πŸŽ€

struct regulator * devm_regulator_get_exclusive (struct device *dev ,
       const char *id );

no cap, that's the whole signature β€” two args, one pointer out πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device that's gonna be supplied. it's giving "who's getting the power" πŸ‘‘
  • id β€” the supply name or the regulator ID. you get to pick which flavor of naming, iykyk 🌈

⭐ DESCRIPTION ⭐

so this is the managed version of regulator_get_exclusive. and what "managed" means here is the iconic part: any regulator you get back from this function gets automatically regulator_put'd when the driver detaches 😭🫢 no manual cleanup era, no leaks, we simply do not stress about it.

ngl if you want the full lore, go read regulator_get for more information β€” that's where the real details live, fr fr πŸ‘€


πŸ’œ SEE ALSO πŸ’œ

the kernel file is ./drivers/regulator/devres.c β€” that's the home base 🏠

and here's the whole friend group, all of them (9) pages, all of them tagged along for the ride:

like, that's a whole squad. the bulk ones? the alias ones? the notifier ones? obsessed πŸ“


πŸ’€ reminder bestie: the "exclusive" in the name is doing real work here β€” it's not just a cute adjective, it's the whole point of the call. don't go thinking you can swap it out for the plain devm_regulator_get and get the same behavior, because that's not what the page says and we don't make stuff up in this house πŸ™ˆ

and that's the page!! signing off with the deets: this manual lives under ./drivers/regulator, dated October 2026, and the footer reads devm_regulat...et_exclusive(9) β€” same mysterious truncated title energy as the top, we stan a consistent brand πŸŒΈβœ¨πŸ’…

πŸ“¦ where this page comes from