STRUCT CANFD_FRAME(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, this is struct canfd_frame(9) from the Kernel API Manual β€” the CAN flexible data rate frame structure. like, the whole vibe is CAN FD frame energy, and we are not skipping a single field πŸ’…βœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct canfd_frame {
    canid_t can_id;
    __u8 len;
    __u8 flags;
    __u8 __res0;
    __u8 __res1;
    __u8 data[CANFD_MAX_DLEN];
 };

πŸŽ€ Members πŸŽ€

  • can_id β€” the CAN ID of the frame plus the CAN_*_FLAG flags, see the canid_t definition. iconic little combo, honestly πŸ‘‘
  • len β€” frame payload length in byte (0 .. CANFD_MAX_DLEN). yes, that exact range, no cap πŸ’–
  • flags β€” extra flags for CAN FD. little extra seasoning 🌈
  • __res0 β€” reserved / padding 🫢
  • __res1 β€” reserved / padding 🫢
  • data β€” the CAN FD frame payload, up to CANFD_MAX_DLEN byte. the main character payload, periodt πŸ”₯

πŸ”— SEE ALSO πŸ”—

Kernel file ./include/uapi/linux/can.h struct can_frame(9), struct canxl_frame(9), struct sockaddr_can(9), struct can_filter(9)


mwah πŸ’‹ this little cutie lives in ./include/uapi/linux, and the date on the vibe is October 2026 β€” slay, that’s the whole sign-off, bestie πŸŽ€βœ¨

πŸ“¦ where this page comes from