STRUCT FWCTL_RPC_CXL_OUT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct fwctl_rpc_cxl_out(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸŽ€ β€” this is the page for struct fwctl_rpc_cxl_out, and no cap, it's the output side of the ioctl(FWCTL_RPC) glow-up for CXL πŸ’… like, when the device talks back, this is the shape it talks back in. periodt.


🌸 NAME 🌸

struct fwctl_rpc_cxl_out β€” the ioctl(FWCTL_RPC) output struct, but make it CXL πŸ¦‹


⭐ SYNOPSIS ⭐

literally the whole vibe, verbatim, don't touch:

struct fwctl_rpc_cxl_out {
    struct {
      __u32 size;
      __u32 retval;
    };
    union {
      struct cxl_mbox_get_sup_feats_out get_sup_feats_out;
      __u8 payload[];
    };
 };

πŸ‘‘ Members πŸ‘‘

bestie there are two anonymous things in here and honestly they're both main character energy πŸ™ˆ

  • {unnamed_struct} β€” anonymous. that's it, that's the whole note πŸ’€ she has no name, she has no drama, she's just vibing there unnamed.
  • size β€” the size of the output payload πŸ“ (yes, the payload. get to know her, she comes back later).
  • retval β€” the return value from the device πŸ”₯ this is where the hardware tells you what it thinks. listen to her.
  • {unnamed_union} β€” also anonymous 🌈 another nameless icon, living her truth.
  • get_sup_feats_out β€” Get Supported Features output ✨ type is struct cxl_mbox_get_sup_feats_out, and she is the structured option in the union.
  • payload β€” raw byte stream of payload πŸ’– type __u8 payload[], the flexible-array member, just raw bytes doing raw byte things. no thoughts, head empty, bytes only 🧚
ngl the way this struct works: the anonymous struct gives you size + retval up front, then the anonymous union lets you read the same trailing bytes either as get_sup_feats_out (the supported-features shape) or as the raw payload[] stream. same bytes, two outfits πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/uapi/fwctl/cxl.h
  • struct fwctl_rpc_cxl(9) πŸ‘€ go read her too, iykyk

okay that's the whole page, you ate that πŸ«ΆπŸ’œ β€” this was brought to you by the kernel source tree at ./include/uapi/fwctl, dated October 2026, and honestly? iconic. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from