syscon_node_to_regmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– syscon_node_to_regmap πŸ’–

okay bestie, welcome to this little page from the Kernel API Manual β€” it’s literally about syscon_node_to_regmap(9), and it’s giving β€œI get you a regmap or I create one,” which is honestly iconic. 🫢✨

✨ NAME ✨

syscon_node_to_regmap β€” get or create a regmap for the specified syscon device node. periodt. πŸ’…

🌸 SYNOPSIS 🌸

struct regmap * syscon_node_to_regmap (struct device_node *np );

πŸŽ€ ARGUMENTS πŸŽ€

  • np β€” device tree node. that’s the node we’re working with, bestie. πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

So here’s the vibe: this gets a regmap for the specified device node. If there’s not an existing regmap, then one is instantiated β€” but only if the node is a generic "syscon". that little condition is important, no cap. πŸ‘‘

And highkey important: this function is safe to use for a syscon registered with of_syscon_register_regmap. slay. ✨

πŸ’€ RETURN πŸ’€

  • On success: a regmap ptr. πŸŽ‰
  • On failure: a negative error code. 😭

🌈 SEE ALSO 🌈


mwah πŸ’‹ this gem lives under source/version ./drivers/mfd, dated October 2026, and the page is syscon_node_to_regmap(9). go off, bestie. 🌟

πŸ“¦ where this page comes from