scmi_xfer_raw_get_init(9)
β¨ scmi_xfer_raw_get_init(9) β¨
okay so bestie, we're in the Kernel API Manual today and this little icon is literally the glow-up assistant for raw SCMI messages π like, it takes your bare message and turns it into a valid xfer. main character energy fr fr.
πΈ SYNOPSIS πΈ
int scmi_xfer_raw_get_init(struct scmi_raw_mode_info *raw, void *buf,
size_t len, struct scmi_xfer **p);
π ARGUMENTS π
rawβ a reference to the Raw instance. like, the whole raw-mode situation you're working with π«Άbufβ a buffer holding the entire SCMI message you wanna send, header and all, in little-endian binaryformmat(yes that's literally how it's spelled in the source, don't come for me ππ)lenβ how long the message inbufis, in bytes πpβ a pointer where the freshly initialized Raw xfer gets handed back to you β¨
π¦ DESCRIPTION π¦
so here's the vibe: an xfer gets picked out of the TX pool, the message content gets poured into it, and then it's registered as pending with the core the usual way β using the original sequence number the user supplied along with the message. no cap, that's the whole flow π
β οΈ ok but listen β if your testing user application is NOT using distinct sequence numbers between successive SCMI messages, that registration could fail temporarily if the previous message (the one with the same sequence number) hadn't been released yet. and in that case? we literally just wait and retry. patient queen behavior πβ³
π RETURN π
0 on Success. slay. π
β SEE ALSO β
- Kernel file
./drivers/firmware/arm_scmi/raw_mode.c Theory of operation(9)struct scmi_raw_queue(9)struct scmi_raw_mode_info(9)struct scmi_xfer_raw_waiter(9)struct scmi_raw_buffer(9)struct scmi_dbg_raw_data(9)scmi_xfer_raw_worker(9)scmi_do_xfer_raw_start(9)scmi_raw_message_send(9)scmi_raw_message_receive(9)scmi_raw_mode_init(9)scmi_raw_mode_cleanup(9)scmi_raw_message_report(9)scmi_raw_error_report(9)
and that's the whole page bestie, iykyk π§ββοΈπ this one lives over in ./drivers/firmware/arm_scmi, stamped October 2026 β go off, kernel docs, periodt ππ₯
π¦ 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