xe_sysctrl_send_command(9)
π 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
- 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