STRUCT I3C_CCC_CMD_PAYLOAD(9)
π¦ struct i3c_ccc_cmd_payload(9) π¦
okay so this is a page from the Kernel API Manual bestie, and it's all about struct i3c_ccc_cmd_payload β literally the payload container for CCCs. tiny struct, big responsibilities π
β¨ NAME β¨
struct i3c_ccc_cmd_payload β the CCC payload, that's it, that's the vibe π
β¨ SYNOPSIS β¨
struct i3c_ccc_cmd_payload {
u16 len;
u16 actual_len;
u16 optional_bytes;
void *data;
};
look at her. four members. no notes. π
β¨ Members β¨
lenβ the payload length you're requesting, like the length you asked for when you placed the order ποΈactual_lenβ how many bytes actually came back on a GET CCC (the driver fills this one in for you, so don't go touching it yourself, mwah π«Ά)optional_bytesβ GET CCCs are allowed to come back with up to this many fewer bytes thanlen, so yes, under-delivery is legal here, no cap πdataβ the payload data itself. and listen: this buffer must be DMA-able. non-negotiable. the hardware needs to be able to reach it directly, so do not hand it some random stack buffer and hope for the best π
β¨ SEE ALSO β¨
all the siblings and cousins, fr fr π§
- Kernel file
./include/linux/i3c/ccc.h struct i3c_ccc_events(9)struct i3c_ccc_mwl(9)struct i3c_ccc_mrl(9)struct i3c_ccc_dev_desc(9)struct i3c_ccc_defslvs(9)enum i3c_ccc_test_mode(9)struct i3c_ccc_enttm(9)struct i3c_ccc_setda(9)struct i3c_ccc_getpid(9)struct i3c_ccc_getbcr(9)struct i3c_ccc_getdcr(9)struct i3c_ccc_getstatus(9)struct i3c_ccc_getaccmst(9)struct i3c_ccc_bridged_slave_desc(9)struct i3c_ccc_setbrgtgt(9)enum i3c_sdr_max_data_rate(9)enum i3c_tsco(9)struct i3c_ccc_getmxds(9)struct i3c_ccc_gethdrcap(9)enum i3c_ccc_setxtime_subcmd(9)struct i3c_ccc_setxtime(9)struct i3c_ccc_getxtime(9)struct i3c_ccc_cmd_dest(9)struct i3c_ccc_cmd(9)
bestie reminder one more time because it matters:datamust be<red>DMA-able</red>. that's the whole assignment. π₯
and that's the page!! sourced from ./include/linux/i3c, dated October 2026 β mwah, go read the rest of the i3c headers, ily, bye ππΈ
π¦ 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