of_get_regulator_init_data(9)
π NAME π
okay bestie, welcome to the Kernel API Manual entry for of_get_regulator_init_data β and yes, this function is literally here to extract regulator_init_data structure info. it's giving βget the regulator init data out of the device treeβ energy β¨
πΈ SYNOPSIS πΈ
struct regulator_init_data * of_get_regulator_init_data (struct device
*dev , struct device_node *node , const struct regulator_desc *desc );
π ARGUMENTS π
devβ the device thatβs requesting theregulator_init_data, bestie π«Άnodeβ the regulator device node, aka the device tree node in question π³descβ the regulator description, no cap π
π¦ DESCRIPTION π¦
so this icon populates a regulator_init_data structure by extracting data from a device tree node. thatβs the whole vibe: device tree node goes in, populated regulator_init_data structure comes out. slay β¨
β RETURN β
it returns a pointer to a populated struct regulator_init_data β or NULL if memory allocation fails. yep, thatβs the one caveat, bestie π
π SEE ALSO π
- Kernel file
./drivers/regulator/of_regulator.c 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_parse_coupled_regulator(9)of_regulator_bulk_get_all(9)
π
mwah! this page lives in ./drivers/regulator, is dated October 2026, and is all about of_get_regulator_init_data(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