st_i2c_xfer_msg(9)
π st_i2c_xfer_msg(9) β like, the whole kernel API manual moment π
okay bestie, welcome to the Kernel API Manual entry for st_i2c_xfer_msg β yes it's a section 9 page, yes it's driver-internals core, and yes we're gonna get through it together π
β¨ NAME β¨
st_i2c_xfer_msg β Transfer a single I2C message π¦
like, one message. singular. that's the whole vibe. no cap.
πΈ SYNOPSIS πΈ
int st_i2c_xfer_msg (struct st_i2c_dev *i2c_dev , struct i2c_msg *msg ,
bool is_first , bool is_last );
she takes four things and returns an int, periodt π
π«Ά ARGUMENTS π«Ά
i2c_devβ the controller's private data β¨ like this is her little stash of controller-specific info, ok?msgβ the I2C message to transfer π¨ the actual thing being sent outis_firstβbool, marks this as the first message of the sequence π main character energy, opening actis_lastβbool, marks this as the last message of the sequence π¬ closing scene, the finale
like the way that is_first and is_last are both bools and both tell you where you are in the sequence?? lowkey iconic. iykyk.
π₯ SEE ALSO π₯
okay so this is the part where the manpage flexes its whole friend group π the kernel file ./drivers/i2c/busses/i2c-st.c and, like, every sibling function:
struct st_i2c_timings(9)struct st_i2c_client(9)struct st_i2c_dev(9)st_i2c_hw_config(9)st_i2c_write_tx_fifo(9)st_i2c_wr_fill_tx_fifo(9)st_i2c_rd_fill_tx_fifo(9)st_i2c_terminate_xfer(9)st_i2c_handle_write(9)st_i2c_handle_read(9)st_i2c_isr_thread(9)st_i2c_xfer(9)
the whole squad fr fr π§π go read them, they're literally all right there
ngl there's no OPTIONS section, no RETURN VALUE section, no ERRORS, no BUGS, no environment variables, no signals, no exit statuses β this page is short and she knows it. don't go looking for stuff that isn't here bestie, i'm not gonna invent it π
kisses and bye-bye from ./drivers/i2c/busses, dated October 2026 β that's the source and the version and the date all in one cute little sign-off πβ slay, go transfer exactly one (1) I2C message ππ
π¦ 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