STRUCT CXL_MAILBOX(9)
π NAME π
struct cxl_mailbox β the whole vibe/context container for CXL mailbox operations β¨ (and yes bestie, this is the struct cxl_mailbox(9) page, straight out of the Kernel API Manual, section 9, no cap π«Ά)
πΈ SYNOPSIS πΈ
okay so here's literally the whole struct, look at her go π
struct cxl_mailbox {
struct device *host;
unsigned long enabled_cmds[BITS_TO_LONGS( CXL_MEM_COMMAND_ID_MAX)];
unsigned long exclusive_cmds[BITS_TO_LONGS(CXL_MEM_COMMAND_ID_MAX)];
size_t payload_size;
struct mutex mbox_mutex;
struct mutex feat_mutex;
struct rcuwait mbox_wait;
int (*mbox_send)(struct cxl_mailbox *cxl_mbox, struct cxl_mbox_cmd *cmd);
enum cxl_features_capability feat_cap;
};
π MEMBERS π
meet the cast, they're all main characters tbh π
hostβ the device that hosts the mailbox. like, the one whose name is on the lease πenabled_cmdsβ the mailbox commands that the driver has enabled. these are the ones that got the green light π’exclusive_cmdsβ the mailbox commands that are exclusive to the kernel. kernel-only, invite-only, iykyk πpayload_sizeβ size of the space for the payload (CXL 3.1 8.2.8.4.3 Mailbox Capabilities Register). yes that's the exact citation, go read it bestie πmbox_mutexβ mutex that protects the device mailbox and the firmware. one at a time, we do NOT do chaos here π¦feat_mutexβ serializes the multi-part Get/Set Feature transfers. it's giving "line leader energy" so nobody's transfers get tangled π€mbox_waitβ anrcuwaitfor the mailbox. the waiting room, but make it kernel πmbox_sendβ the dev-specific transport for actually transmitting mailbox commands. this is THE messenger fr fr π¨feat_capβ the Features capability. theenum cxl_features_capabilityone, keeping receipts π§Ύ
π SEE ALSO π
- Kernel file
./include/cxl/mailbox.hπ¦ struct cxl_mbox_cmd(9)β go say hi, she's the related icon β¨
ok that's the whole page, you ate that π no skimming, everything's still here, every member, every mutex, every citation. periodt π
and that's a wrap on struct cxl_mailbox(9) β live from ./include/cxl, dated October 2026, 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