STRUCT FWCTL_RPC_CXL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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