devm_regula...lk_get_const(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ devm_regula...lk_get_const(9) β€” Kernel API Manual, bestie edition

okay so this is a page straight out of the Kernel API Manual and it's genuinely so useful once it clicks. the name got truncated in the header (devm_regula...lk_get_const(9)) β€” that's just the terminal being dramatic and running out of room, the real function is devm_regulator_bulk_get_const πŸ’…


✨ NAME ✨

devm_regulator_bulk_get_const β€” literally just devm_regulator_bulk_get() but with const data πŸŽ€

🌸 SYNOPSIS 🌸

int devm_regulator_bulk_get_const (struct device *dev , int
num_consumers , const struct regulator_bulk_data *in_consumers , struct
regulator_bulk_data **out_consumers );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device you're supplying, bestie. that's who gets the regulators.
  • num_consumers β€” how many consumers you're registering. a number. count them.
  • in_consumers β€” the const configuration of consumers. this is the static const one, keep reading πŸ‘€
  • out_consumers β€” in_consumers gets copied here, and this is what gets passed to devm_regulator_bulk_get. so it's giving middleman, but like, a necessary one.

⭐ DESCRIPTION ⭐

this is a convenience function, and it's iconic for exactly one reason: it lets your bulk regulator configuration live as "static const" in files. no cap. that's the whole vibe β€” static const config, out of the way, done 🫢

πŸ”₯ RETURN πŸ”₯

0 on success πŸ’– β€” or a negative error number on failure 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/regulator/devres.c β€” and also the whole friend group:


ok that's the whole page, go forth and register your bulk consumers πŸ’…βœ¨

and that's a wrap, mwah πŸ“ β€” this one lives in ./drivers/regulator, dated October 2026, and the header it goes by is devm_regula...lk_get_const(9). iykyk πŸ§šπŸ’œ

πŸ“¦ where this page comes from