xcan_update_...e_after_rxtx(9)
β¨ xcan_update_error_state_after_rxtx β a Kernel API Manual moment β¨
okay so bestie, this is a page from the Kernel API Manual, and the star of the show is xcan_update_error_state_after_rxtx. she's a little function with a big job and honestly? iconic. let's get into it π
π NAME π
xcan_update_error_state_after_rxtx β Update CAN error state after RX/TX
like, that's literally her whole thing. update the CAN error state, after RX or TX. no cap. π
πΈ SYNOPSIS πΈ
void xcan_update_error_state_after_rxtx (struct net_device *ndev );
she returns void (no return value, she gives nothing back and that's valid π
) and she takes exactly one argument.
π¦ ARGUMENTS π¦
ndevβ Pointer tonet_devicestructure β¨ that's it. that's the whole arg list. one pointer, one job, main character energy.
π DESCRIPTION π
so here's the vibe check π β if the device is hanging out in a ERROR-WARNING or ERROR-PASSIVE state, this function checks whether the RX/TX that just happened caused it to drop down to a lesser state, and then it sets the interface state accordingly. like she's doing the little check-in, seeing if things calmed down, and updating the receipts. π«Ά
that's it, that's the whole lore. no extra drama. β¨
π SEE ALSO π
okay this list is LONG and she did not come alone, she brought the whole friend group π β
- Kernel file
./drivers/net/can/xilinx_can.c 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_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_berr_counter(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)
literally the whole squad fr fr π₯
and that's the page bestie!! π she lives over in ./drivers/net/can and this edition is dated October 2026 β so like, future vibes only. mwah, go read some more man pages, 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