es58x_msg_num_element(9)
πΈ 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 β¨
-EOVERFLOWifactual_lenis greater than the expected length π-EMSGSIZEifactual_lenis not a multiple of a single element π
π SEE ALSO π
- Kernel file
./drivers/net/can/usb/etas_es58x/es58x_core.h enum es58x_driver_info(9)enum es58x_physical_layer(9)enum es58x_sync_edge(9)enum es58x_flag(9)enum es58x_err(9)enum es58x_event(9)struct es58x_priv(9)struct es58x_parameters(9)struct es58x_operators(9)struct es58x_sw_version(9)struct es58x_hw_revision(9)struct es58x_device(9)es58x_sizeof_es58x_device(9)es58x_check_msg_len(9)es58x_check_msg_max_len(9)es58x_priv(9)ES58X_SIZEOF_URB_CMD(9)es58x_get_urb_cmd_len(9)es58x_get_netdev(9)es58x_get_raw_can_id(9)es58x_get_flags(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms