devm_regmap_field_bulk_free(9)
π devm_regmap_field_bulk_free β the Kernel API Manual girlies know this one
okay so bestie, welcome to <pink>devm_regmap_field_bulk_free</pink> from the Kernel API Manual β¨ this little function is the cleanup bestie for bulk register fields, and honestly? she's lowkey iconic for doing almost nothing and letting the devm magic handle it π«Ά
πΈ NAME πΈ
devm_regmap_field_bulk_free β frees a bulk register field that was allocated using devm_regmap_field_bulk_alloc π
β¨ SYNOPSIS β¨
void devm_regmap_field_bulk_free (struct device *dev , struct regmap_field *field );
no cap, that's the whole signature π
π ARGUMENTS π
devβ the device that will be interacted with π¦ like, that's the device in question, keep up bestiefieldβ the regmap field which should be freed π§Ή the one getting the goodbye treatment
π₯ DESCRIPTION π₯
so basically this frees a register field that was allocated using devm_regmap_field_bulk_alloc β¨ that's it, that's the job.
fr fr, usually drivers need not call this function, because the memory allocated via devm gets freed automatically as per the device-driver life-cycle π like the whole point of devm is that you don't have to remember, she remembers for you π
π SEE ALSO π
kernel file: ./drivers/base/regmap/regmap.c ποΈ and the whole friend group:
devm_regmap_field_alloc(9)regmap_field_bulk_alloc(9)devm_regmap_field_bulk_alloc(9)regmap_field_bulk_free(9)devm_regmap_field_free(9)regmap_field_alloc(9)regmap_field_free(9)regmap_reinit_cache(9)regmap_exit(9)dev_get_regmap(9)regmap_get_device(9)regmap_can_raw_write(9)regmap_get_raw_read_max(9)regmap_get_raw_write_max(9)regmap_write(9)regmap_write_async(9)regmap_raw_write(9)regmap_noinc_write(9)regmap_field_update_bits_base(9)regmap_field_test_bits(9)regmap_fields_update_bits_base(9)regmap_bulk_write(9)regmap_multi_reg_write(9)regmap_multi_reg_write_bypassed(9)regmap_raw_write_async(9)regmap_read(9)regmap_read_bypassed(9)regmap_raw_read(9)regmap_noinc_read(9)regmap_field_read(9)regmap_fields_read(9)regmap_bulk_read(9)regmap_multi_reg_read(9)regmap_update_bits_base(9)regmap_test_bits(9)regmap_async_complete(9)regmap_register_patch(9)regmap_get_val_bytes(9)regmap_get_max_register(9)regmap_get_reg_stride(9)regmap_might_sleep(9)
like, the whole regmap friend group showed up to the function's going-away party ππ
π«Ά anyway, that's the page! sourced from./drivers/base/regmap, dated October 2026, and yes the manual name is<pink>devm_regmap_field_bulk_free(9)</pink>β stan a self-referential queen ππΈ 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