cxl_payload...user_allowed(9)
π cxl_payload_from_user_allowed(9) π
okay bestie, so this one is a <pink>Kernel API Manual</pink> page β yes, the kernel kernel β and it's literally about giving user-space payloads a vibe check before they get anywhere near the device. no cap.
β¨ NAME β¨
cxl_payload_from_user_allowed β check contents of in_payload. that's it, that's the whole job π
πΈ SYNOPSIS πΈ
bool cxl_payload_from_user_allowed (u16 opcode , void *payload_in ,
size_t in_size );
π¦ ARGUMENTS π¦
opcodeβ the mailbox command opcode. it's giving "which command are we even talking about" energy πpayload_inβ pointer to the input payload that got passed in from user space. yes, that user space πin_sizeβ the size ofpayload_in, in bytes. count 'em, bestie π
β RETURN β
trueβpayload_inpasses the check foropcode. slay, we're so back πfalseβpayload_incontains invalid or unsupported values. not it. blocked. π
π DESCRIPTION π
so the driver may peek at payload contents before it sends a mailbox command from user space over to the device. the whole intent here? reject commands whose input payloads are known to be unsafe. it's a bouncer at the club, basically π«Ά
lowkey important: this check is not meant to replace the user carefully selecting mailbox command parameters. it also makes no guarantee that the user command will succeed, and no guarantee that it's even appropriate. it's a vibe check, not a promise, iykyk π
the specific checks? those are determined by the opcode. different command, different rules. periodt. β¨
π§ SEE ALSO π§
kernel file ./drivers/cxl/core/mbox.c cxl mbox(9), plus the whole friend group:
cxl_internal_send_cmd(9)cxl_validate_cmd_from_user(9)handle_mailbox_cmd_from_user(9)cxl_walk_cel(9)cxl_enumerate_cmds(9)cxl_mem_get_event_records(9)cxl_mem_get_partition_info(9)cxl_dev_state_identify(9)cxl_mem_sanitize(9)
and that's the whole page, bestie π shoutout to <cyan>./drivers/cxl/core</cyan> for dropping this one, dated <yellow>October 2026` β same energy, same manual, mwah ππ¦
π¦ 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