devm_regmap_init_mmio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ devm_regmap_init_mmio ✨

okay so bestie, welcome to the Kernel API Manual β€” this is the page for devm_regmap_init_mmio, and it's literally the "set up your register map and let the kernel clean up after you" moment πŸŽ€


🌸 NAME 🌸

devm_regmap_init_mmio β€” Initialise managed register map πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

devm_regmap_init_mmio (dev , regs , config );

that's the whole vibe, no cap ✨


πŸ“ ARGUMENTS πŸ“

  • dev β€” the Device that will be interacted with 🫢 like, this is the one doing the interacting, keep up
  • regs β€” Pointer to memory-mapped IO region πŸ“ a pointer, to the mmio region, that's the whole thing
  • config β€” Configuration for register map βš™οΈ the settings, the setup, the little blueprint for your regmap

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea πŸ”₯ the return value will be an ERR_PTR on error, or a valid pointer to a struct regmap. so like, check your return values, bestie, fr fr 😭

the regmap will be automatically freed by the device management code β€” that's the "devm" part doing its main character thing, you don't have to free it yourself, she handles it πŸ’…βœ¨

and Implies 'fast_io'. that's it, that's the note, it just implies it 🧚


🌈 SEE ALSO 🌈

okay this list is LONG but we're listing every single one because I said so πŸ‘‘ no skipping, periodt:

Kernel file ./include/linux/regmap.h β€” plus all of these besties:


fr fr that's all of them, every last one, I counted πŸ’€

mwah πŸ’– this page came from ./include/linux and it's dated October 2026 β€” and it's signed off as devm_regmap_init_mmio(9) because we stay on brand around here 🫢✨

πŸ“¦ where this page comes from