scmi_raw_mode_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 Raw debugfs dentry. yes she lives in debugfs, 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 in channels. 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:


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