regulator_ge...limit_regmap(9)
β¨ regulator_get_current_limit_regmap(9) β¨
okay bestie, welcome to the Kernel API Manual π this one's a lil helper function from the regulator corner of the kernel and honestly? she's a time-saver. let's get into it π«Ά
πΈ NAME πΈ
regulator_get_current_limit_regmap β the get_current_limit for regmap users, periodt β¨
π¦ SYNOPSIS π¦
int regulator_get_current_limit_regmap (struct regulator_dev *rdev );
π ARGUMENTS π
rdevβ the regulator you wanna operate on π like, this is the main character of the whole call, no cap.
π DESCRIPTION π
so here's the vibe π if your regulator uses regmap for its register I/O, you can just set the csel_reg and csel_mask fields in your descriptor, and then use this function as your get_current_limit operation. that's it. that's the whole thing. it saves some code π
and we love a low-effort high-reward situation, fr fr.
literally just point the operation at this bad boy and let her cook π
ngl, it's giving "why write it yourself when the kernel already wrote it for you" energy π iconic behaviour tbh.
π₯ SEE ALSO π₯
the kernel file that lives with her π§:
./drivers/regulator/helpers.c
and her whole friend group π (they all show up together, iykyk):
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(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_bulk_set_supply_names(9)regulator_is_equal(9)regulator_find_closest_bigger(9)regulator_set_ramp_delay_regmap(9)
that's the whole page bestie, go forth and call your helpers π«
mwah π this one came straight out of./drivers/regulator, dated October 2026, and yes the header still saysregulator_ge...limit_regmap(9)because truncation is her aesthetic apparently π stay slay, stay regulated β
π¦ 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