devm_regmap_init(9)
πΈ NAME πΈ
devm_regmap_init β Initialise managed register map
Okay so hi bestie π welcome to devm_regmap_init(9), live from the Kernel API Manual. This is the managed-register-map init situation, and yes it's giving kernel-core realness π
β¨ SYNOPSIS β¨
devm_regmap_init (dev , bus , bus_context , config );
π ARGUMENTS π
devβ The device that will be interacted with π«Άbusβ Bus-specific callbacks to use with the device β¨bus_contextβ Data passed to those bus-specific callbacks πconfigβ Configuration for the register map π
π¦ DESCRIPTION π¦
So the return value is either an ERR_PTR on error, or a valid pointer to a struct regmap. That's the whole vibe check: error pointer or actual regmap pointer, no in-between π
This function should generally not be called directly β it should be called by bus-specific init functions. Like, it's the backstage pass, not the main entrance π
The map will be automatically freed by the device management code. Managed means managed, bestie β¨
β οΈ real talk: don't just call devm_regmap_init directly, fr fr β let the bus-specific init functions handle it. The auto-free is handled by the device management code, and that's iconic π«Ά
π SEE ALSO π
Kernel file ./include/linux/regmap.h β and here's the whole friend group π―ββοΈ:
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_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_slimbus(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)
And that's the page, bestie π«Ά cute little sign-off time: the footer energy is source/version path ./include/linux and date October 2026 β periodt π
β¨
π¦ 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