of_parse_coupled_regulator(9)
πΈ NAME πΈ
okay so bestie, we're in the Kernel API Manual and this page is of_parse_coupled_regulator(9) β and it's literally here to Get regulator_dev pointer from rdev's property. That's it. That's the assignment. π
β¨
π SYNOPSIS π
struct regulator_dev * of_parse_coupled_regulator (struct regulator_dev
*rdev , int index );
π¦ ARGUMENTS π¦
rdevβ pointer toregulator_dev, whose DTS is used as a source to parse the"regulator-coupled-with"property. yes, the DTS is the source here π«Άindexβ index in the phandles array. that's the index, bestie β¨
π₯ RETURN π₯
Pointer to the struct regulator_dev parsed from DTS, or NULL if it has not yet been registered. so if it's not registered yet, you get NULL β no cap π
π SEE ALSO π
Kernel file: ./drivers/regulator/of_regulator.c β iconic. π§
of_get_regulator_init_data(9)of_regulator_match(9)of_get_child_regulator(9)of_get_regulator(9)of_regulator_dev_lookup(9)of_regulator_get(9)of_regulator_get_optional(9)of_check_coupling_data(9)of_regulator_bulk_get_all(9)
mwah π this one's from ./drivers/regulator, dated October 2026, and it's still of_parse_coupled_regulator(9) β periodt. π¦π
π¦ 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