regmap_init_mmio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regmap_init_mmio(9) β€” Kernel API Manual πŸŽ€

okay so bestie, welcome to the Kernel API Manual, and today's main character is regmap_init_mmio β€” literally the glow-up ritual that turns your tiny baby register map into a fully functioning icon ✨


🌸 NAME 🌸

regmap_init_mmio β€” Initialise register map

like, it's giving "wake up babe, new regmap just dropped" πŸ’œ


πŸ¦‹ SYNOPSIS πŸ¦‹

regmap_init_mmio (dev , regs , config );

no cap, that's the whole invocation. three lil arguments and you're off 🫢


✨ ARGUMENTS ✨

  • dev β€” the Device that will be interacted with. this is the whole entire point of the operation, she's the one actually being interacted with πŸ’–
  • regs β€” Pointer to memory-mapped IO region. yes. mmio. it's in the name, iykyk 🧚
  • config β€” Configuration for register map. your settings, your vibes, your rules πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

So here's the tea β˜• β€” the return value will be an ERR_PTR on error, or a valid pointer to a struct regmap if everything slayed. That's it. That's the deal. πŸ’€

Also lowkey important: it implies 'fast_io'. Like, it just does that. periodt. ⭐

bestie please check your return value πŸ™ˆ β€” an ERR_PTR is literally the function telling you it did not eat. use your IS_ERR() checks, i'm begging πŸ₯Ί

πŸ‘‘ SEE ALSO πŸ‘‘

okay this list is LONG and we're gonna get through all of it because every single one of these is iconic in her own right 🌈

Kernel file ./include/linux/regmap.h πŸ’«

not me listing all fifty-ish of these 😭 but like, they're all family, we don't leave anyone out πŸ’…


<div align="center">🌸 πŸ¦‹ πŸŽ€ πŸ¦‹ 🌸</div>

k bye bestie, this page lives in ./include/linux and the version/date stamp on it is October 2026 β€” so mark your calendar, the regmap init is eternal β­πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from