STRUCT FWCTL_RPC_CXL(9)
π struct fwctl_rpc_cxl(9) π
okay so bestie, welcome to the <pink>struct fwctl_rpc_cxl</pink> page from the Kernel API Manual β this is the ioctl(FWCTL_RPC) input for CXL, and honestly? it's giving "small struct, big responsibilities" β¨
π NAME π
struct fwctl_rpc_cxl β the ioctl(FWCTL_RPC) input for CXL, no cap π
π¦ SYNOPSIS π¦
here's the whole vibe, literally verbatim, don't touch a single character:
struct fwctl_rpc_cxl {
struct {
__u32 opcode;
__u32 flags;
__u32 op_size;
__u32 reserved1;
};
union {
struct cxl_mbox_get_sup_feats_in get_sup_feats_in;
struct cxl_mbox_get_feat_in get_feat_in;
struct cxl_mbox_set_feat_in set_feat_in;
};
};
like, look at her. she's built different πΈ
π Members π
okay now the actual members, let's go one by one because every single one matters π«Ά
{unnamed_struct}β anonymous. yes queen, she has no name and that's iconic πopcodeβ the CXL mailbox command opcode. this is the "what are we even doing here" field βflagsβ the flags for the command (input). input bestie, remember that β¨op_sizeβ size of the input payload. gotta know how much you're feeding her πreserved1β reserved. must be 0s. not vibe-y suggestions, actual requirement, so please don't be that person π{unnamed_union}β anonymous again. two anonymous members in one struct? main character energy fr fr π₯get_sup_feats_inβ Get Supported Features input πget_feat_inβ Get Feature input πset_feat_inβ Set Feature input π
π SEE ALSO π
go read these too, iykyk:
- Kernel file
./include/uapi/fwctl/cxl.h struct fwctl_rpc_cxl_out(9)β yes bestie there's an OUT version too, the sequel ate π
ok random but important: reserved1 must be 0s. that's not me being dramatic, that's the manpage. set it to zero and we stay friends π«Ά
and that's the whole page, you're officially educated π this little gem lives in ./include/uapi/fwctl, dated October 2026 β slay, see you in the group chat β¨ππ¦
π¦ 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