regmap_field_free(9)
π regmap_field_free(9) β like, the freeing one, bestie
okay so this is a page from the Kernel API Manual (the 9 girlies, kernel devs) and it's about regmap_field_free β the cleanup bestie for register fields. tiny page, big "taking out the trash" energy. let's get into it π
β¨ NAME β¨
regmap_field_free β frees a register field that was allocated with regmap_field_alloc. that's it. that's the whole job. she's a liberator π
π¦ SYNOPSIS π¦
void regmap_field_free (struct regmap_field *field );
no return value, no drama. void means she gives you nothing back except a freed field. main character behavior honestly π
πΈ ARGUMENTS πΈ
fieldβ the regmap field that should be freed. yes, the one you got fromregmap_field_alloc. hand her over, she's done β¨
β οΈ okay important: this is the free function, so only pass stuff that actually came from regmap_field_alloc β the name is lowkey a spoiler, and it's in the NAME section for a reason, iykyk π
π«Ά SEE ALSO π«Ά
the whole regmap group chat, fr fr π
- field alloc/free fam:
devm_regmap_field_alloc(9),regmap_field_bulk_alloc(9),devm_regmap_field_bulk_alloc(9),regmap_field_bulk_free(9),devm_regmap_field_bulk_free(9),devm_regmap_field_free(9),regmap_field_alloc(9) - cache & lifecycle:
regmap_reinit_cache(9),regmap_exit(9) - device stuff:
dev_get_regmap(9),regmap_get_device(9) - raw write caps:
regmap_can_raw_write(9),regmap_get_raw_read_max(9),regmap_get_raw_write_max(9) - writing:
regmap_write(9),regmap_write_async(9),regmap_raw_write(9),regmap_noinc_write(9) - field bits:
regmap_field_update_bits_base(9),regmap_field_test_bits(9),regmap_fields_update_bits_base(9) - bulk & multi writes:
regmap_bulk_write(9),regmap_multi_reg_write(9),regmap_multi_reg_write_bypassed(9),regmap_raw_write_async(9) - reading:
regmap_read(9),regmap_read_bypassed(9),regmap_raw_read(9),regmap_noinc_read(9) - field & bulk reads:
regmap_field_read(9),regmap_fields_read(9),regmap_bulk_read(9),regmap_multi_reg_read(9) - more bits:
regmap_update_bits_base(9),regmap_test_bits(9) - misc icons:
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)
also the kernel file itself lives at ./drivers/base/regmap/regmap.c if you wanna go read the source like the little scholar you are π
π friendly reminder that this is the kernel, so "free it once and free it right" is not a vibe, it's a rule. no cap.
and that's the page!! πβ¨ source/version ./drivers/base/regmap, dated October 2026 β mwah, go free that field bestie π
ππ¦
π¦ 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