ctucan_get_berr_counter(9)
π ctucan_get_berr_counter π
okay so this is a page from the Kernel API Manual, section 9, and it's literally all about ctucan_get_berr_counter β the error counter routine. yes bestie, we're in the kernel now, put your hair up π
πΈ NAME πΈ
ctucan_get_berr_counter β the error counter routine, periodt β¨
π¦ SYNOPSIS π¦
int ctucan_get_berr_counter (const struct net_device *ndev , struct
can_berr_counter *bec );
like... it's giving "two pointers and a return value", and honestly? iconic π
π ARGUMENTS π
ndevβ pointer to thenet_devicestructure π«Άbecβ pointer to thecan_berr_counterstructure π«Ά
that's it. two args. main character energy fr fr.
β¨ DESCRIPTION β¨
so basically this is the driver error counter routine. that's the whole description. no notes, she said what she said π π₯
π RETURN π
0on success π- a failure value on error π
(not me telling you to check the return value β but like, check the return value π)
π SEE ALSO π
the whole friend group shows up for this one, no cap:
- Kernel file
./drivers/net/can/ctucanfd/ctucanfd_base.c ctucan_state_to_str(9),ctucan_reset(9),ctucan_set_btr(9)ctucan_set_bittiming(9),ctucan_set_data_bittiming(9)ctucan_set_secondary_sample_point(9),ctucan_set_mode(9)ctucan_chip_start(9),ctucan_do_set_mode(9),ctucan_get_tx_status(9)ctucan_is_txt_buf_writable(9),ctucan_insert_frame(9)ctucan_give_txtb_cmd(9),ctucan_start_xmit(9),ctucan_read_rx_frame(9)ctucan_rx(9),ctucan_read_fault_state(9),ctucan_get_rec_tec(9)ctucan_err_interrupt(9),ctucan_rx_poll(9),ctucan_rotate_txb_prio(9)ctucan_tx_interrupt(9),ctucan_interrupt(9),ctucan_chip_stop(9)ctucan_open(9),ctucan_close(9)
bestie reminder: this is section 9, kernel-space territory β read the whole squad before you go poking at error counters, mwah π
and that's the page!! sign-off time: this one lives at ./drivers/net/can/ctucanfd, dated October 2026, and it's ctucan_get_berr_counter(9) from the Kernel API Manual β slay, go read the source, iykyk π§ββοΈπ«πΈ
π¦ 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