es58x_rx_cmd_ret_u8(9)
π es58x_rx_cmd_ret_u8(9) β like, the Kernel API Manual era π
okay so bestie, this page is es58x_rx_cmd_ret_u8(9) from the Kernel API Manual, and it's literally about handling the command's return code that comes back from the ES58X device. yes. that's the whole vibe. let's get into it π
β¨ NAME β¨
es58x_rx_cmd_ret_u8 β handle the command's return code received from the ES58X device. iconic behavior honestly.
π¦ SYNOPSIS π¦
int es58x_rx_cmd_ret_u8 (struct device *dev , enum es58x_ret_type
cmd_ret_type , enum es58x_ret_u8 rx_cmd_ret_u8 );
yes she takes three args and returns an int, no cap π
πΈ ARGUMENTS πΈ
devβ the device, and ngl it's only used for thedev_XXXprint functions. that's it. that's her whole job here π«Άcmd_ret_typeβ the type of the command that triggered the return code. like, which command is out here causing problems πrx_cmd_ret_u8β the command error code as returned by the ES58X device. the receipts, basically π
β DESCRIPTION β
so this function handles the 8-bit command return code, and here's the tea: those are specific to the ES581.4 device. periodt. π
the return value will eventually be used by the es58x_handle_urb_cmd function, which is the one that takes proper actions in case of critical issues β things like memory errors or bad CRC values π so yeah, she's feeding the main character here.
and in contrast with es58x_rx_cmd_ret_u32, the network device is unknown in this one. no netdev bestie, we simply don't have her π§
π RETURN π
zero on success, and it returns errno when any error occurs. simple, clean, slay β¨
π SEE ALSO π
first up, the kernel file itself, right here:
./drivers/net/can/usb/etas_es58x/es58x_core.c
and then the whole friend group π«Ά like honestly the whole gc showed up:
es58x_calculate_crc(9)es58x_get_crc(9)es58x_set_crc(9)es58x_check_crc(9)es58x_timestamp_to_ns(9)es58x_set_skb_timestamp(9)es58x_rx_timestamp(9)es58x_set_realtime_diff_ns(9)es58x_is_can_state_active(9)es58x_is_echo_skb_threshold_reached(9)es58x_can_free_echo_skb_tail(9)es58x_can_get_echo_skb_recovery(9)es58x_can_get_echo_skb(9)es58x_can_reset_echo_fifo(9)es58x_flush_pending_tx_msg(9)es58x_tx_ack_msg(9)es58x_rx_can_msg(9)es58x_rx_err_msg(9)es58x_cmd_ret_desc(9)es58x_rx_cmd_ret_u32(9)es58x_increment_rx_errors(9)es58x_handle_urb_cmd(9)es58x_check_rx_urb(9)es58x_copy_to_cmd_buf(9)es58x_split_urb_try_recovery(9)es58x_handle_incomplete_cmd(9)es58x_split_urb(9)es58x_read_bulk_callback(9)es58x_write_bulk_callback(9)es58x_alloc_urb(9)es58x_get_tx_urb(9)es58x_submit_urb(9)es58x_send_msg(9)es58x_alloc_rx_urbs(9)es58x_free_urbs(9)es58x_open(9)es58x_stop(9)es58x_xmit_commit(9)es58x_xmit_more(9)es58x_start_xmit(9)es58x_set_mode(9)es58x_init_priv(9)es58x_init_netdev(9)es58x_free_netdevs(9)es58x_init_es58x_dev(9)es58x_probe(9)es58x_disconnect(9)
lowkey a whole family reunion in that SEE ALSO list, and you're invited π
and that's the page!! mwah π this one lives over in ./drivers/net/can/usb/etas_es58x, stamped October 2026 β go drink some water and go touch some URBs bestie, ily, bye πβ¨
π¦ 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