of_syscon_register_regmap(9)
π 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 π₯
0on success π (we love a zero)- a negative error code on failure π (read it, don't ignore it, i'm begging)
β SEE ALSO β
- Kernel file
./drivers/mfd/syscon.cπ device_node_to_regmap(9)syscon_node_to_regmap(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms