es58x_cmd_ret_desc(9)
π es58x_cmd_ret_desc β like, the kernel API manual bestie π
okay so you found your way into the es58x corner of the kernel, welcome, it's cozy here β¨ this one lives in the Kernel API Manual, section 9, and honestly? it's a tiny little glow-up of a function. let's get into it π¦
πΈ NAME πΈ
es58x_cmd_ret_desc β turns a command type into a string, no cap π
β¨ SYNOPSIS β¨
const char * es58x_cmd_ret_desc (enum es58x_ret_type cmd_ret_type );
that's it. one argument, one string back. iconic behavior honestly π
π«Ά ARGUMENTS π«Ά
cmd_ret_typeβ the type of the command that triggered the return code. like, which command did the thing, that's what you're handing over π
π§ DESCRIPTION π§
so the function does its little switch-and-return dance, and the final line of it β the one that returns "<unknown>" β is literally not supposed to be reached. like, ever. π
if you ever DO hit that return "<unknown>", bestie, that's not a user problem, that's an implementation bug. say it with me: not my fault, it's a bug π
π₯ RETURN π₯
a readable description of the cmd_ret_type. that's the whole assignment. slay π
π SEE ALSO π
the kernel file itself lives at ./drivers/net/can/usb/etas_es58x/es58x_core.c β go say hi π¦
and here's the whole friend group, all of them, in order, i'm not skipping a single one because FOMO is real π
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_rx_cmd_ret_u8(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)
kisses from the ./drivers/net/can/usb/etas_es58x directory, dated October 2026, straight out of the Kernel API Manual β drink water, read your man pages, and remember: "<unknown>" means bug, not vibe ππ·β
π¦ 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