regulator_m...tage_iterate(9)
π regulator_m...tage_iterate(9) β a Kernel API Manual moment β¨
okay so first of all, bestie, this page lives in the Kernel API Manual, and the function it's hyping up is regulator_map_voltage_iterate β yes the title is literally truncated to regulator_m...tage_iterate(9) and no we are not fixing it, that's just how it's filed π
πΈ NAME πΈ
regulator_map_voltage_iterate β lowkey map_voltage() but built on top of list_voltage(), and honestly? it eats π
β¨ SYNOPSIS β¨
int regulator_map_voltage_iterate (struct regulator_dev *rdev , int
min_uV , int max_uV );
three args, one int coming back at you, no drama π
π¦ ARGUMENTS π¦
rdevβ the regulator we're operating on, the main character of this whole function ngl πmin_uVβ the lower bound for the voltage, like the floor of the vibe πΈmax_uVβ the upper bound for the voltage, the ceiling, the limit, the boundary bestie π
π§ DESCRIPTION π§
okay so picture this: you're a driver implementing set_voltage_sel and list_voltage, and you need a map_voltage operation. congrats, this is literally the one for you π«Ά
what it does is call list_voltage over and over β like, keep going, girl β until it lands on something in bounds for the voltages you asked for. that's it. that's the whole strategy. iterative queen behaviour, no cap β
fr fr if you're theset_voltage_sel+list_voltagecombo type, this is yourmap_voltage. it just keeps pokinglist_voltageuntil something falls inside the requested range π
π SEE ALSO π
the whole friend group, in order, exactly as listed, because we don't leave anyone out:
Kernel file ./drivers/regulator/helpers.cregulator_is_enabled_regmap(9)regulator_enable_regmap(9)regulator_disable_regmap(9)regulator_get_voltage_sel_pickable_regmap(9)regulator_set_voltage_sel_pickable_regmap(9)regulator_get_voltage_sel_regmap(9)regulator_set_voltage_sel_regmap(9)regulator_map_voltage_ascend(9)regulator_map_voltage_linear(9)regulator_map_voltage_linear_range(9)regulator_map_voltage_pickable_linear_range(9)regulator_desc_list_voltage_linear(9)regulator_list_voltage_linear(9)regulator_list_voltage_pickable_linear_range(9)regulator_desc_list_voltage_linear_range(9)regulator_list_voltage_linear_range(9)regulator_list_voltage_table(9)regulator_set_bypass_regmap(9)regulator_set_soft_start_regmap(9)regulator_set_pull_down_regmap(9)regulator_get_bypass_regmap(9)regulator_set_active_discharge_regmap(9)regulator_set_current_limit_regmap(9)regulator_get_current_limit_regmap(9)regulator_bulk_set_supply_names(9)regulator_is_equal(9)regulator_find_closest_bigger(9)regulator_set_ramp_delay_regmap(9)
and that's the page, bestie π this little number hangs out under ./drivers/regulator and it's dated October 2026 β iykyk, go read the others, mwah ππ¦β¨
π¦ 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