regmap_field_bulk_alloc(9)
π regmap_field_bulk_alloc β like, the Kernel API Manual page you actually wanna read π
okay bestie, buckle up, because this is the regmap_field_bulk_alloc(9) glow-up and she is serving β¨. It's a kernel API manual page, it lives in ./drivers/base/regmap, and it's literally about allocating and initialising a bulk register field. Slay. Let's get into it π
β¨ SYNOPSIS β¨
int regmap_field_bulk_alloc (struct regmap *regmap , struct regmap_field
**rm_field , const struct reg_field *reg_field , int num_fields );
that's the whole vibe right there, no cap π«Ά
πΈ ARGUMENTS πΈ
regmapβ the regmap bank where this register field is chilling. like, the neighborhood it lives in πrm_fieldβ the regmap register fields within that bank. the actual field girlies πreg_fieldβ the register fields within the bank too β yes bestie, both of these are about fields in the bank, that's just how it is πnum_fieldsβ how many register fields we're talking about. the headcount π₯
π DESCRIPTION π
So the return value? she's giving -ENOMEM on error, or zero for success β that's it, that's the whole vibe check β.
And heads up, queen: newly allocated regmap_fields should be freed by calling regmap_field_bulk_free β don't leave them orphaned, that's not main character energy, that's a leak ππ§
π¦ SEE ALSO π¦
okay this list is long and honestly iconic, so here's every single one, no skips, no summarizing, periodt π
Kernel file ./drivers/base/regmap/regmap.c, plus:
devm_regmap_field_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), 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, go read those too, iykyk ππ
lowkey reminder bestie:-ENOMEMbad, zero good, andregmap_field_bulk_freeis your cleanup bestie fr fr π
and that's the page!! source/version: ./drivers/base/regmap β dated October 2026, which is giving very much "future icon" energy βπ signing off, 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