es58x_msg_num_element(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to es58x_msg_num_element(9) from the Kernel API Manual β€” this icon checks the size and gives you the number of elements in a message of array type. slay. πŸ’…


✨ SYNOPSIS ✨

es58x_msg_num_element (dev , msg , actual_len );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device, and it's used to print error messages. 🫢
  • msg β€” the received message, and it must be an array. no cap.
  • actual_len β€” the length of the message as advertised in the command header. periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: this must be a macro in order to accept the different types of messages as an input. It's meant to be used on messages of array type. Each array element has to be of fixed size β€” else use es58x_check_msg_max_len, bestie. It checks that the total length is an exact multiple of the length of a single element. πŸ’–


🌈 RETURN 🌈

  • the number of elements in the array on success ✨
  • -EOVERFLOW if actual_len is greater than the expected length 😭
  • -EMSGSIZE if actual_len is not a multiple of a single element πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ that's the whole vibe. This page lives under ./drivers/net/can/usb/etas_es58x, dated October 2026, and it's from the Kernel API Manual. go off, bestie 🫢

πŸ“¦ where this page comes from