devm_regmap_init_sccb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– devm_regmap_init_sccb(9) πŸ’–

okay bestie, welcome to the Kernel API Manual corner of the group chat 🫢 today’s main character is devm_regmap_init_sccb(9), and we’re gonna get you comfy with it. no cap. πŸ’…


πŸŽ€ NAME πŸŽ€

devm_regmap_init_sccb β€” Initialise managed register map ✨

🌸 SYNOPSIS 🌸

devm_regmap_init_sccb (i2c , config );

🫢 ARGUMENTS 🫢

  • i2c β€” the device that will be interacted with. that’s the one you’re talking to, bestie πŸ’–
  • config β€” configuration for the register map. yes, the settings vibe πŸŽ€

πŸ’… DESCRIPTION πŸ’…

so here’s the tea: the return value is either an ERR_PTR on error, or a valid pointer to a struct regmap when it slays. ✨

and the regmap? it gets automatically freed by the device management code. managed cleanup arc, we love to see it 🫢

🌈 SEE ALSO 🌈

Kernel file ./include/linux/regmap.h is the backstage pass, and then there’s this whole friend group πŸ‘‘


xoxo, this one’s sourced from ./include/linux, dated October 2026, and it’s all about devm_regmap_init_sccb(9) πŸ’–πŸ¦‹

πŸ“¦ where this page comes from