xe_sysctrl_send_command(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Œ xe_sysctrl_send_command(9) πŸ’Œ

okay bestie, welcome to the Kernel API Manual β€” yes we're reading kernel docs together, this is our bonding era 🫢


✨ NAME ✨

xe_sysctrl_send_command β€” literally just sending a mailbox command to the System Controller, that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

int xe_sysctrl_send_command (struct xe_sysctrl *sc , struct
       xe_sysctrl_mailbox_command *cmd , size_t *rdata_len );

no cap, that's the exact signature, don't come for me about the line break, it's how the original rolls 😌


πŸŽ€ ARGUMENTS πŸŽ€

  • sc β€” your System Controller instance, the main character of this whole operation πŸ‘‘
  • cmd β€” the command descriptor, and she's carrying the request header AND the payload buffers, highkey doing the most πŸ‘œ
  • rdata_len β€” a pointer where we store the actual response data length, so like... the receipts πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's what's tea: this function sends a mailbox command to the System Controller firmware using the System Controller mailbox, and then it waits for a response. That's it, that's the function. Patient queen behavior, honestly ⏳✨

The request payload gets provided via cmd->data_in and cmd->data_in_len. If a response is expected (iykyk), then cmd->data_out has to point to a buffer of size cmd->data_out_len supplied by the caller β€” so you gotta bring your own buffer, bestie, it's not gonna conjure one for you 🎁

On success, rdata_len gets updated with the number of valid response bytes returned by the firmware, bounded by cmd->data_out_len. So it'll never overflow your buffer, she's respectful like that πŸ’–


⭐ RETURN ⭐

0 on success, or a negative errno on failure. Simple. Iconic. Periodt πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/gpu/drm/xe/xe_sysctrl_mailbox.c β€” go read the source, it's giving lore πŸ“–
  • xe_sysctrl_create_command(9) β€” the prequel, watch it first 🎬

ngl this one's short and sweet, so go forth and send those mailbox commands, bestie 🌈

and that's the whole page!! brought to you by ./drivers/gpu/drm/xe, dated October 2026, page xe_sysctrl_send_command(9) β€” mwah, love u, bye πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from