scmi_raw_message_receive(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scmi_raw_message_receive β€” like, the kernel API manual manual, bestie ✨

okay so picture this: you're deep in the ARM SCMI raw-mode trenches and you need the next message. This is your girl. πŸŽ€

✨ NAME ✨

scmi_raw_message_receive β€” a little helper (the manpage literally calls it "An helper", iconic) whose whole job is to dequeue and report the next available enqueued raw message payload that has been collected. That's it. That's the gig. 🫢


🌸 SYNOPSIS 🌸

int scmi_raw_message_receive (struct scmi_raw_mode_info *raw , void *buf
, size_t len , size_t *size , unsigned int idx , unsigned int chan_id ,
bool o_nonblock );

no cap, that's the whole signature. six things plus a bool, we love a tidy function πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

okay so here's the vibe check on every single param, and yes we're doing all of them:

  • raw β€” a reference to the Raw instance. your entry point, your main character. πŸ‘‘
  • buf β€” a buffer that gets hold of the whole SCMI message received, represented in little-endian binary format (specify little-endian in your head with feeling, it matters). πŸ“
  • len β€” length of buf. i.e., how much room buf actually has. don't lie about this one please πŸ™ˆ
  • size β€” the effective size of the message copied into buf. so len is what you offered, size is what you actually got. lowkey the most useful output here. ✨
  • idx β€” the index of the queue to pick the next queued message from. yes queen, there are multiple queues. πŸ’…
  • chan_id β€” the channel ID to use. pick your lane.
  • o_nonblock β€” a flag requesting a non-blocking message dequeue. set it and she will not sit there waiting on you. πŸƒβ€β™€οΈ

πŸ”₯ RETURN πŸ”₯

  • 0 on Success βœ…

that's it. that's the return value. 0 means slay, go home. (the source page only promises this one, so we're not out here inventing error codes fr fr β€” iykyk 🌈)


πŸ’œ SEE ALSO πŸ’œ

the whole group chat, in the order the page lists them:

πŸ’€ reminder for the girlies: this is a helper for dequeuing an already-collected raw payload. It reports what's enqueued β€” it does not go out and fetch the message for you. That's the whole plot. πŸŽ€

and that's the page!! πŸ¦‹ straight from ./drivers/firmware/arm_scmi, dated October 2026, and the whole thing answers to the name scmi_raw_message_receive(9). periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from