es58x_fd_sizeof_rx_tx_msg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ es58x_fd_sizeof_rx_tx_msg ✨

okay bestie, welcome to the Kernel API Manual entry for es58x_fd_sizeof_rx_tx_msg β€” yes that's a mouthful, yes it's iconic, we move πŸ’…


🌸 NAME 🌸

es58x_fd_sizeof_rx_tx_msg β€” literally just calculates the actual length of the structure of a rx or tx message. that's it. that's the whole job πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

es58x_fd_sizeof_rx_tx_msg (msg );

πŸ’– ARGUMENTS πŸ’–

  • msg β€” a message of variable length, and ngl it must have a dlc and a len field. no dlc/len, no vibe check passed, periodt 🫢

🌈 DESCRIPTION 🌈

okay so here's the tea β˜• β€” even though RTR frames actually have, like, no payload whatsoever, the ES58X devices still expect it. yes really. they want the length anyway. main character energy honestly 😭

and because of that, this thing must be a macro β€” not a function, a macro β€” so it can accept several types as an input, specifically struct es58x_fd_tx_can_msg and struct es58x_fd_rx_can_msg. flexible? we love to see it πŸ’€βœ¨


⭐ RETURN ⭐

the length of the message. that's the return value, bestie. go off πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/net/can/usb/etas_es58x/es58x_fd.c β€” go read it, iykyk 🧚

and that's the whole page!! tysm for reading, this was ./drivers/net/can/usb/etas_es58x, dated October 2026, straight from the Kernel API Manual πŸ’œπŸ¦‹ mwah, slay, bye πŸŽ€

πŸ“¦ where this page comes from