of_syscon_register_regmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… of_syscon_register_regmap(9) πŸ’…

okay so bestie, welcome to the of_syscon_register_regmap(9) page β€” it's a kernel API manual, it's short, it's iconic, and it's about to be your new fave little helper ✨


πŸŽ€ NAME πŸŽ€

of_syscon_register_regmap β€” literally just: register a regmap for the device node you specified 🫢


🌸 SYNOPSIS 🌸

int of_syscon_register_regmap (struct device_node *np , struct regmap *regmap );

like. that's the whole vibe. two args, one int back. no cap πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • np β€” the device tree node, bestie. the DT node in question 🌳
  • regmap β€” a pointer to the regmap object ✨ (yes, a pointer, we're being fancy)

πŸ’– DESCRIPTION πŸ’–

so here's the tea, okay? this function registers an externally created regmap object with syscon, for the device tree node you hand it. like, you made the regmap somewhere else and now you're introducing it to syscon. networking, but for kernel data structures 🧚

and then β€” and this is the main character moment β€” that regmap gets returned to client drivers via the syscon_regmap_lookup_by_phandle API. so everyone who looks it up by phandle gets your regmap. slay. it's giving matchmaker energy πŸ’œ


πŸ”₯ RETURN πŸ”₯

  • 0 on success πŸŽ‰ (we love a zero)
  • a negative error code on failure πŸ’€ (read it, don't ignore it, i'm begging)

⭐ SEE ALSO ⭐

go read those too, iykyk πŸ“š


ngl bestie, if the lookup isn't giving what you expected, double-check that you actually registered the regmap for the right node before you start blaming the kernel πŸ™ˆ

okay that's the whole page, no notes πŸ’… this adorable little manual lives at ./drivers/mfd, dated October 2026, and it's titled of_syscon_register_regmap(9) β€” drink water, recompile clean, mwah πŸ“πŸŒˆπŸ’œ

πŸ“¦ where this page comes from