regulator_r...supply_alias(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regulator_register_supply_alias(9) β€” the Kernel API Manual glow-up ✨

okay so this is the page for regulator_register_supply_alias(9) from the Kernel API Manual, and bestie it is literally the little matchmaker of the regulator world πŸŽ€ like it's giving "you two should date" but for devices and their power supplies. let's get into it πŸ¦‹


🌸 NAME 🌸

regulator_register_supply_alias β€” Provide device alias for supply lookup πŸ’–

yes that's the whole vibe: it provides an alias so when somebody goes looking for a supply, they find it under a different name. iconic behavior, no cap. πŸ‘‘


✨ SYNOPSIS ✨

int regulator_register_supply_alias (struct device *dev , const char *id
, struct device *alias_dev , const char *alias_id );

four args, one int coming back. the way that signature just sits there 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device that will be given as the regulator "consumer". like, this is the one doing the consuming, main character energy fr fr πŸ’…
  • id β€” the Supply name or regulator ID. this is the name we're aliasing from.
  • alias_dev β€” the device that should be used to lookup the supply. the one we're pointing at πŸ‘€
  • alias_id β€” the Supply name or regulator ID that should be used to lookup the supply. the other half of the alias, yk?

πŸ’œ DESCRIPTION πŸ’œ

ok so here's the tea β˜• β€” all lookups for id on dev will instead be conducted for alias_id on alias_dev.

that's it. that's the whole thing. every single lookup gets redirected, no exceptions, periodt. it's a full-on remap, not a suggestion 🌈


πŸ”₯ RETURN πŸ”₯

  • 0 on success πŸŽ‰
  • or a negative error number on failure 😭 (ngl, you're gonna wanna check for that one)

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/regulator/core.c β€” and here's the entire extended friend group, bestie, every last one of them, nobody left out πŸ’–:

like, that's a whole contact list 😭 the group chat is popping off πŸ’€


ngl this page is from ./drivers/regulator and it's dated October 2026 β€” so yeah, she's fresh πŸ’« hope that helped bestie, go forth and alias responsibly πŸ§šβ€β™€οΈπŸ’œ
πŸ“¦ where this page comes from