devm_regula...supply_alias(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– devm_regula...supply_alias(9) πŸ’–

okay bestie, welcome to the Kernel API Manual entry for the managed regulator bulk supply alias helper. the header title is shortened, but the full function name is right there in NAME and it is iconic. no cap.


✨ NAME ✨

devm_regulator_bulk_register_supply_alias β€” Managed register multiple aliases

🧾 SYNOPSIS 🧾

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

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device to supply, bestie.
  • id β€” list of supply names or regulator IDs.
  • alias_dev β€” device that should be used to lookup the supply.
  • alias_id β€” list of supply names or regulator IDs that should be used to lookup the supply.
  • num_id β€” number of aliases to register.

🌸 DESCRIPTION 🌸

it returns 0 on success, and a negative error number on failure. periodt.

this helper function lets drivers register several supply aliases in one operation. the aliases will be automatically unregistered when the source device is unbound. and if any of the aliases cannot be registered, any aliases that were registered will be removed before returning to the caller β€” so the cleanup is handled before it hands control back, fr fr.

πŸ”₯ SEE ALSO πŸ”₯

kernel file: ./drivers/regulator/devres.c

the whole friend group:


mwah πŸ’‹ β€” source is ./drivers/regulator, date is October 2026, and the footer title is devm_regula...supply_alias(9). iykyk ✨🫢

πŸ“¦ where this page comes from