rk3x_i2c_setup(9)
β¨ rk3x_i2c_setup β¨
Okay bestie, this is the rk3x_i2c_setup page from the Kernel API Manual β let's get into it π
π NAME π
rk3x_i2c_setup β literally the function that sets up I2C registers for an I2C operation described by msgs and num π«Ά
π SYNOPSIS π
Here's the vibe, no cap:
int rk3x_i2c_setup (struct rk3x_i2c *i2c , struct i2c_msg *msgs , int
num );
πΈ ARGUMENTS πΈ
i2cβ the target controller data, like the main character of this operation πmsgsβ the I2C msgs you're processing, the whole stack of themnumβ how many msgs there are, the count, the number, the amount π
π¦ DESCRIPTION π¦
Heads up bestie: you must have i2c->lock held before you call this. No exceptions, periodt. π
β RETURN β
Returns the number of I2C msgs processed β or a negative value if something went sideways π
π₯ SEE ALSO π₯
- Kernel file
./drivers/i2c/busses/i2c-rk3x.c struct i2c_spec_values(9)struct rk3x_i2c_calced_timings(9)struct rk3x_i2c_soc_data(9)struct rk3x_i2c(9)rk3x_i2c_start(9)rk3x_i2c_stop(9)rk3x_i2c_prepare_read(9)rk3x_i2c_fill_transmit_buf(9)rk3x_i2c_get_spec(9)rk3x_i2c_v0_calc_timings(9)rk3x_i2c_v1_calc_timings(9)rk3x_i2c_clk_notifier_cb(9)
Catch you later! This page came from the ./drivers/i2c/busses section, dated October 2026 β slay! ππ
π¦ 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