xcan_get_berr_counter(9)
π xcan_get_berr_counter(9) β the Kernel API Manual, bestie edition β¨
okay so real talk, we're deep in the <pink>Kernel API Manual</pink> today and the star of the show is xcan_get_berr_counter β say it with me, bestie: x-can-get-berr-counter. iconic name, no notes π
πΈ NAME πΈ
xcan_get_berr_counter β the error counter routine π literally what it says on the tin, and she ate
π¦ SYNOPSIS π¦
int xcan_get_berr_counter (const struct net_device *ndev , struct
can_berr_counter *bec );
that's it. that's the whole vibe check. two pointers and an int return, she's lowkey elegant π
β ARGUMENTS β
ndevβ pointer to anet_devicestructure π«Ά like, the NIC's whole personality lives in therebecβ pointer to acan_berr_counterstructure π this is where the counter juice goes
two args, both pointers, both absolutely carrying the function. periodt π
π DESCRIPTION π
so basically? this is the driver error counter routine. that's the whole description fr fr β she's a specialist, she does one thing, and honestly? main character energy πβ¨
no cap, don't go looking for extra lore here, this is the entire canon π
π₯ RETURN π₯
0on success π slay- a failure value on error π not slay, but that's the deal
π§ SEE ALSO π§
okay this is the part where the group chat gets LONG, grab a snack bestie π
Kernel file ./drivers/net/can/xilinx_can.c, plus the whole friend group:
struct xcan_priv(9)xcan_write_reg_le(9)xcan_read_reg_le(9)xcan_write_reg_be(9)xcan_read_reg_be(9)xcan_rx_int_mask(9)set_reset_mode(9)xcan_set_bittiming(9)xcan_chip_start(9)xcan_do_set_mode(9)xcan_write_frame(9)xcan_start_xmit_fifo(9)xcan_start_xmit_mailbox(9)xcan_start_xmit(9)xcan_rx(9)xcanfd_rx(9)xcan_current_error_state(9)xcan_set_error_state(9)xcan_update_error_state_after_rxtx(9)xcan_err_interrupt(9)xcan_state_interrupt(9)xcan_rx_fifo_get_next_frame(9)xcan_rx_poll(9)xcan_tx_interrupt(9)xcan_interrupt(9)xcan_chip_stop(9)xcan_open(9)xcan_close(9)xcan_get_auto_tdcv(9)xcan_suspend(9)xcan_resume(9)xcan_runtime_suspend(9)xcan_runtime_resume(9)xcan_probe(9)xcan_remove(9)
like I said. the entire friend group. iykyk ππ«
π friendly reminder bestie: this page ships out of ./drivers/net/can and it's dated October 2026 β yes, the future, she's ahead of her time π
k bye, go read your error counters, ily π«Άπβ¨
π¦ 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