devm_regmap_init_slimbus(9)
π 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 herconfigβ 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 π«Ά
struct reg_default(9)struct reg_sequence(9)regmap_read_poll_timeout(9)regmap_read_poll_timeout_atomic(9)regmap_field_read_poll_timeout(9)struct regmap_range(9)struct regmap_access_table(9)struct regmap_config(9)struct regmap_range_cfg(9)struct regmap_sdw_mbq_cfg(9)struct regmap_bus(9)regmap_init(9)regmap_init_i2c(9)regmap_init_mdio(9)regmap_init_sccb(9)regmap_init_slimbus(9)regmap_init_spi(9)regmap_init_spmi_base(9)regmap_init_spmi_ext(9)regmap_init_w1(9)regmap_init_mmio_clk(9)regmap_init_mmio(9)regmap_init_ac97(9)regmap_init_sdw(9)regmap_init_sdw_mbq(9)regmap_init_sdw_mbq_cfg(9)regmap_init_i3c(9)regmap_init_spi_avmm(9)regmap_init_fsi(9)devm_regmap_init(9)devm_regmap_init_i2c(9)devm_regmap_init_mdio(9)devm_regmap_init_sccb(9)devm_regmap_init_spi(9)devm_regmap_init_spmi_base(9)devm_regmap_init_spmi_ext(9)devm_regmap_init_w1(9)devm_regmap_init_mmio_clk(9)devm_regmap_init_mmio(9)devm_regmap_init_ac97(9)devm_regmap_init_sdw(9)devm_regmap_init_sdw_mbq(9)devm_regmap_init_sdw_mbq_cfg(9)devm_regmap_init_i3c(9)devm_regmap_init_spi_avmm(9)devm_regmap_init_fsi(9)struct reg_field(9)struct regmap_irq_type(9)struct regmap_irq(9)struct regmap_irq_chip(9)
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
- 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