regmap_bulk_write(9)
π regmap_bulk_write(9) π
okay so bestie, welcome to the regmap_bulk_write page from the Kernel API Manual β yes it's a section 9 manpage, yes it's about writing registers, and yes we're gonna make it make sense π«Ά
β¨ NAME β¨
regmap_bulk_write β Write multiple registers to the device π
πΈ SYNOPSIS πΈ
int regmap_bulk_write (struct regmap *map , unsigned int reg , const
void *val , size_t val_count );
like, that's the whole signature, no cap π
π¦ ARGUMENTS π¦
mapβ the register map you're writing to, your main character struct πregβ the first register you're writing from (yes, "write from", that's what the page says, iykyk) βvalβ the block of data to be written, in the native register size for the device πval_countβ how many registers you're writing, the count, the amount, the vibe check number π₯
π DESCRIPTION π
So this function? It's literally built for writing a large block of data to the device β either in a single transfer or in multiple transfers. Either way, it's giving efficient β¨
A value of zero will be returned on success π₯³ a negative errno will be returned in error cases π (as is tradition).
ngl bestie, always check that return value β 0 = slay, negative = something went wrong and you should care π
π SEE ALSO π
Kernel file ./drivers/base/regmap/regmap.c β go read it, it's iconic π
then the whole friend group, fr fr:
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)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_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)
and that's the page!! π
this lil beauty lives in ./drivers/base/regmap, dated October 2026, and it's regmap_bulk_write(9) all the way through β go write some registers bestie, you got this π§π
π¦ 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