of_get_regulator(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– of_get_regulator(9) β€” Kernel API Manual, bestie edition πŸ’–

Okay so bestie, welcome to the of_get_regulator(9) page β€” it’s giving β€œfind me the regulator device node by supply name” energy, and honestly? Iconic. Periodt. ✨

✨ NAME ✨

of_get_regulator β€” get a regulator device node based on supply name.

🌸 SYNOPSIS 🌸

struct device_node * of_get_regulator (struct device *dev , struct device_node *node , const char *supply );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” Device pointer for dev_printk messages. Yep, that’s the device pointer used for those messages. 🫢
  • node β€” Device node pointer for supply property lookup. It’s the node pointer where the supply property gets looked up.
  • supply β€” regulator supply name. Literally the supply name. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Extract the regulator device node corresponding to the supply name.

That’s the whole vibe: you hand it the supply name, and it extracts the matching regulator device node. No cap. 🌈

πŸ’œ RETURN πŸ’œ

Pointer to the struct device_node corresponding to the regulator if found, or NULL if not found.

So: found = pointer to the struct device_node, not found = NULL. Fr fr. πŸŽ€

πŸ‘‘ SEE ALSO πŸ‘‘


Catch you from ./drivers/regulator, October 2026 β€” of_get_regulator(9) signing off with main character energy πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from