scmi_raw_mode_init(9)
π scmi_raw_mode_init β NAME
okay so like, welcome to the Kernel API Manual bestie, this is scmi_raw_mode_init(9) and it's literally the function that initializes the SCMI Raw stack β¨ no cap, that's the whole name, that's the whole vibe.
π SYNOPSIS
void * scmi_raw_mode_init (const struct scmi_handle *handle , struct
dentry *top_dentry , int instance_id , u8 *channels , int num_chans ,
const struct scmi_desc *desc , int tx_max_msg );
she takes a bunch of args and hands you back a void * β iconic signature tbh π«Ά
πΈ ARGUMENTS
okay so here's the roster, every single one of them, no skips:
handleβ pointer to the SCMI entity handle. like, the main character reference π«top_dentryβ a reference to the top Rawdebugfsdentry. yes she lives indebugfs, we love that for her.instance_idβ the ID of the underlying SCMI platform instance that this Raw instance represents. iykyk πͺͺchannelsβ the list of the existing channels. all of them. the whole lineup.num_chansβ the number of entries inchannels. gotta know how many besties are in the group chat π¬descβ reference to the transport operations. the plumbing, the mechanics, the ~structure~ π§tx_max_msgβ max number of in-flight messages allowed by the transport. like a vibe check on how much can be happening at once π¦
π¦ DESCRIPTION
so what she actually does: this function prepares the SCMI Raw stack and creates the debugfs API. that's it, that's the job, and she ate π
β¨
π RETURN
- On success β an opaque handle to the Raw instance π (don't peek inside, it's opaque, respect her privacy)
- Otherwise β an
ERR_PTRπ so yeah, check for errors fr fr
β SEE ALSO
the whole friend group, in order, so you can go read them all:
- 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_xfer_raw_get_init(9)scmi_do_xfer_raw_start(9)scmi_raw_message_send(9)scmi_raw_message_receive(9)scmi_raw_mode_cleanup(9)scmi_raw_message_report(9)scmi_raw_error_report(9)
ok that's the whole page, go forth and init your raw stack bestie π§π
mwah π this one came from ./drivers/firmware/arm_scmi and it's dated October 2026 β that's the sign-off, 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