regulator_ma...ltage_linear(9)
π regulator_ma...ltage_linear(9) β from the Kernel API Manual, bestie β¨
okay so first of all, the title got chopped in half by the terminal, it's literally regulator_ma...ltage_linear(9) and yes it lives in the Kernel API Manual, section 9, kernel-space girlies only, no cap π
β¨ NAME β¨
regulator_map_voltage_linear β it's the map_voltage() for simple linear mappings, and honestly? she's the low-effort icon we stan π«Ά
πΈ SYNOPSIS πΈ
int regulator_map_voltage_linear (struct regulator_dev *rdev , int
min_uV , int max_uV );
the line break is doing its own thing, don't come for her, just copy it exactly fr fr π
π¦ ARGUMENTS π¦
rdevβ the regulator you're operating on, the main character of this whole function πmin_uVβ the lower bound for voltage, the floor, the "at least this much, babe" β¨max_uVβ the upper bound for voltage, the ceiling, the "okay that's enough" πΈ
π₯ DESCRIPTION π₯
so here's the tea β β if your driver is out here providing min_uV and uV_step in its regulator_desc, you can just use this bad boy as your map_voltage operation. that's it. that's the whole vibe. simple, linear, iconic, periodt π
no weird math, no drama, just a straight line from point A to point B. it's giving "graph in 8th grade algebra but make it kernel" ππ
π SEE ALSO π
the whole friend group, in order, no one gets left out π«Ά
- Kernel file
./drivers/regulator/helpers.cβ go read the source, bestie, it's right there π regulator_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_iterate(9)regulator_map_voltage_ascend(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)
aaaand that's the page, bestie π this whole thing came out of ./drivers/regulator, dated October 2026 β like, future girlie hours fr fr β and yeah the header and footer both say regulator_ma...ltage_linear(9) because consistency is also a slay β¨π¦ mwah, go map some voltages π
π¦ 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