devm_regmap_init_slimbus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

devm_regmap_init_slimbus β€” bestie, it initialises a managed register map. that's it, that's the whole vibe ✨


🌸 SYNOPSIS 🌸

devm_regmap_init_slimbus (slimbus , config );

πŸŽ€ ARGUMENTS πŸŽ€

  • slimbus β€” the device you're gonna be interacting with 🫢 like, the actual SLIMbus device, that one, yes her
  • config β€” the configuration for the register map. the settings. the little outfit the regmap is gonna wear πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” the return value is gonna be an ERR_PTR on error, or a valid pointer to a struct regmap. those are the only two options, no in-between, no "it's complicated" 😭

and the regmap? it gets automatically freed by the device management code πŸ‘‘ that's the managed part, that's the whole point, no manual cleanup era, we love a self-cleaning situation fr fr 🧚

lowkey the most important thing: check that return value for ERR_PTR before you dereference it, or it's giving undefined behaviour energy πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./include/linux/regmap.h β€” and like, the entire extended regmap family, no cap, here's the whole group chat 🫢


okay that's the whole page, you ate that bestie πŸ’…βœ¨ this one's from the Kernel API Manual, sourced out of ./include/linux, stamped October 2026 β€” go forth and managed-regmap responsibly πŸŽ€πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from