es58x_check_msg_max_len(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… es58x_check_msg_max_len(9) β€” like, the vibe-check for your message size

okay so bestie, welcome to the Kernel API Manual ✨ this one's a lil macro from the kernel, and honestly? she's serving "bouncer at the club door" energy 🫢


🌸 NAME 🌸

es58x_check_msg_max_len β€” check the maximum size of a received message. that's it, that's the job πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

es58x_check_msg_max_len (dev , msg , actual_len );

✨ ARGUMENTS ✨

  • dev β€” the device πŸ–₯️ it's literally just here so we can print error messages, that's her whole purpose, no cap.
  • msg β€” the received message πŸ“¨ and listen: it must not be a pointer. like, at all. not even a little. periodt.
  • actual_len β€” the length of the message as advertised in the command header πŸ“ (as in, what the message claims her size is β€” we're checking receipts here).

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the reason this has to be a macro 😭 is that it needs to accept all the different types of messages as an input, and a regular function simply could not. it's giving flexible, it's giving versatile.

use this one with messages of variable sizes πŸŽ€ she only does ONE thing: check that the message is not bigger than the maximum expected size. that's the whole gig. no notes. πŸ‘‘


πŸ’œ RETURN πŸ’œ

  • zero on success πŸŽ‰ β€” everything's chill, message is within bounds.
  • -EOVERFLOW if actual_len is greater than the expected length πŸ’€ β€” yeah, that message is doing too much, she's too big, we're overflowing.

🌈 SEE ALSO 🌈

kernel file ./drivers/net/can/usb/etas_es58x/es58x_core.h, plus the whole friend group πŸ’–:


bestie reminder 🫢: this macro is a maximum check only β€” it doesn't check the minimum, it doesn't check everything, it checks that one specific thing. don't go expecting more from her, she's doing her best πŸ’…

alright that's the whole page, mwah πŸ’‹ this one lives in ./drivers/net/can/usb/etas_es58x and the docs are dated October 2026 β€” iconic, timeless, we stan a future-dated manpage 🧚⭐

πŸ“¦ where this page comes from