regmap_read_poll_timeout(9)
β¨ regmap_read_poll_timeout(9) β¨
okay so welcome to the Kernel API Manual, bestie π this page is literally all about regmap_read_poll_timeout β the βpoll until a condition is met or a timeout occursβ icon of the regmap world. no cap. π¦
πΈ NAME πΈ
regmap_read_poll_timeout β poll until a condition is met or a timeout occurs. periodt. π
π SYNOPSIS π
regmap_read_poll_timeout (map , addr , val , cond , sleep_us ,
timeout_us );
π ARGUMENTS π
mapβ the regmap you're reading from. main character regmap energy. πaddrβ the address to poll. like, we keep checking this spot. πvalβ an unsigned integer variable to read the value into. the value goes in here, bestie. πcondβ the break condition (usually involvingval). this is the βare we done yet?β vibe check. β¨sleep_usβ maximum time to sleep between reads in us (0tight-loops). pls read theusleep_rangefunction description for details and limitations. π«Άtimeout_usβ timeout in us;0means never timeout. β³
π DESCRIPTION π
This is modelled after the readx_poll_timeout macros in linux/iopoll.h. that's the whole description, and honestly? iconic. β¨
π₯ RETURN π₯
0on success. slay. π-ETIMEDOUTupon a timeout. π- or the
regmap_readerror return value in case of a error read. π
In the two former cases, the last read value at addr is stored in val.
β οΈ Must not be called from atomic context ifsleep_usortimeout_usare used. fr fr, respect the atomic-context boundary. π«
π SEE ALSO π
the whole SEE ALSO list is giving regmap extended universe ππ
- Kernel file
./include/linux/regmap.h struct reg_default(9)struct reg_sequence(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_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)
source/version: ./include/linux Β· date: October 2026 β k bye bestie, 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