regmap_field_bulk_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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: -ENOMEM bad, zero good, and regmap_field_bulk_free is 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