omap_register_i2c_bus(9)
π omap_register_i2c_bus(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for omap_register_i2c_bus, and we're gonna get you fluent in it, no cap β¨
πΈ NAME πΈ
omap_register_i2c_bus β registers an I2C bus with device descriptors. that's the whole vibe. it sets up the bus and hands over the descriptor info that goes with it π¦
β¨ SYNOPSIS β¨
int omap_register_i2c_bus (int bus_id , u32 clkrate , struct
i2c_board_info const *info , unsigned len );
literally the whole signature, character for character, don't come for me π
π ARGUMENTS π
bus_idβ the bus id, and heads up: it counts from number1. not zero. one. remember that or you WILL be confused later, iykyk πclkrateβ the clock rate of the bus, measured in kHz. that's kilohertz, bestie, keep the units straight π«Άinfoβ a pointer into the I2C device descriptor table, orNULLif you've got nothing to pass. both are valid, she's flexible πlenβ the number of descriptors in that table. count them. all of them. π₯
π DESCRIPTION π
so what does it do? it returns 0 on success, or an error code if things went sideways. that's it. that's the description. short and iconic, honestly π
lowkey the whole function is just "did it work or not" energy β always check that return value, bestie, don't just assume it slayed π
π SEE ALSO π
- the kernel file
./arch/arm/mach-omap1/i2c.cβ go read it, it's right there π omap_i2c_bus_setup(9)β her sister function, give her a visit too π§
and that's the page!! periodt π β¨
this little masterpiece lives under ./arch/arm/mach-omap1 and the version vibes are dated October 2026 β okay bye ily, go register some buses 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