devm_regulat...supply_alias(9)
π devm_regulat...supply_alias(9) β Kernel API Manual, bestie edition π
okay so this one's from the Kernel API Manual, and the function name got cutely truncated to devm_regulat...supply_alias(9) because even man pages have a character limit, slay.
β¨ NAME β¨
devm_regulator_register_supply_alias β the resource-managed glow-up of regulator_register_supply_alias(). it's giving "I'll clean up after myself" energy, no cap π
πΈ SYNOPSIS πΈ
int devm_regulator_register_supply_alias (struct device *dev , const
char *id , struct device *alias_dev , const char *alias_id );
that's the whole vibe right there. four args, one int, iconic. π
π¦ ARGUMENTS π¦
devβ the device that's getting supplied. like, the one being fed. πidβ the supply name or regulator ID. yep, it's the identifier bestie.alias_devβ the device that should be used to look up the supply. this is the one doing the looking-up, main character energy β¨alias_idβ the supply name or regulator ID that should be used to look up the supply. so yeah, the lookup-side ID, not to be confused withid, they are literally different things π
π DESCRIPTION π
okay so the whole point: the supply alias will automatically be unregistered when the source device is unbound. that's the "resource managed" part β you don't have to remember to unregister it yourself, it just handles it. obsessed. π«Ά
β SEE ALSO β
Kernel file ./drivers/regulator/devres.c β and here comes the friend group, the whole regulator devres squad, no one left out:
devm_regulator_get(9)devm_regulator_get_exclusive(9)devm_regulator_get_enable_optional(9)devm_regulator_get_enable(9)devm_regulator_get_optional(9)devm_regulator_get_enable_read_voltage(9)devm_regulator_put(9)devm_regulator_bulk_get(9)devm_regulator_bulk_get_exclusive(9)devm_regulator_bulk_get_const(9)devm_regulator_bulk_put(9)devm_regulator_bulk_get_enable(9)devm_regulator_register(9)devm_regulator_bulk_register_supply_alias(9)devm_regulator_register_notifier(9)devm_regulator_unregister_notifier(9)devm_regulator_irq_helper(9)devm_of_regulator_get(9)devm_of_regulator_get_optional(9)
like, the entire group chat. go read them, iykyk. π
π and that's the page!! sign-off time: this one lives in ./drivers/regulator and it's dated October 2026, so yeah, future-coded of it. bye bestie, go manage some resources πβ¨π¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms