regmap_init_fsi(9)
π regmap_init_fsi(9) π
okay so this is a page from the Kernel API Manual (yes, the actual kernel API manual, we're fancy now π) and it's about regmap_init_fsi β literally the glow-up moment where your register map gets born. Let's get into it bestie β¨
πΈ NAME πΈ
regmap_init_fsi β Initialise register map
that's it. that's the whole name. short, sweet, iconic π
β¨ SYNOPSIS β¨
regmap_init_fsi (fsi_dev , config );
look at her go. two args, zero drama π«Ά
π ARGUMENTS π
fsi_devβ the device you're gonna be interacting with π like, who are we even talking to here. that one.configβ the configuration for the register map. all the settings, all the vibes, all the setup π
π¦ DESCRIPTION π¦
okay so here's the tea β β the return value is gonna be one of two things:
- an
ERR_PTRif something went wrong π (translation: it errored out, go check it fr fr) - OR a valid pointer to a
struct regmapπ (translation: it worked, slay)
that's the whole description. no cap, that's it. lowkey obsessed with how short this is π
heads up bestie β always check that return value.ERR_PTRon error, valid pointer to astruct regmapon success. don't be out here dereferencing an error like it's nothing π
π SEE ALSO π
the whole friend group showed up for this one, iykyk π start with the kernel file:
- Kernel file
./include/linux/regmap.h
and then, in order, the rest of the crew π§:
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)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_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 whole page bestie, go forth and initialise your register maps π
signing off from ./include/linux, version October 2026, on the regmap_init_fsi(9) page β 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