scmi_msg_response_validate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scmi_msg_response_validate(9) β€” Kernel API Manual πŸ’…

πŸ’– NAME πŸ’–

scmi_msg_response_validate β€” validate a message type against the state of the related xfer. It's giving vibe check, but make it firmware πŸ’…βœ¨

πŸ¦‹ SYNOPSIS πŸ¦‹

the signature is literally this, bestie β€” copy it exactly:

int scmi_msg_response_validate (struct scmi_chan_info *cinfo , u8 msg_type , struct scmi_xfer *xfer );

πŸŽ€ ARGUMENTS πŸŽ€

  • cinfo β€” a reference to the channel descriptor. πŸ’–
  • msg_type β€” the message type to check. πŸ‘€
  • xfer β€” a reference to the xfer to validate against msg_type. 🫢

✨ DESCRIPTION ✨

okay so listen: this function checks whether msg_type is congruent with the current state of a pending xfer. If an asynchronous delayed response comes in before the related synchronous response β€” that's the Out-of-Order Delayed Response case β€” the missing synchronous response is assumed to be OK and completed, and it carries on with the Delayed Response. This is done to address the case in which the underlying SCMI transport can deliver such out-of-order responses. No cap, that's the whole plot. πŸ’…

πŸ”’ CONTEXT πŸ”’

Assumes to be called with xfer->lock already acquired. Like, lock it before you call it, bestie β€” it's not gonna do it for you. πŸ”

πŸ’€ RETURN πŸ’€

0 on Success β€” slay β€” error otherwise. Sigh when it's not zero. 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/firmware/arm_scmi/driver.c and struct scmi_xfers_info(9) β€” the source spot and its xfer info struct, iykyk. πŸ›Έ


okay that's the page! brought to you by source/version ./drivers/firmware/arm_scmi, dated October 2026, and yes β€” it's scmi_msg_response_validate(9) all the way down. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from