xcan_set_bittiming(9)
π xcan_set_bittiming(9) β the Kernel API Manual glow-up π
okay so bestie, welcome to the Kernel API Manual page for xcan_set_bittiming(9) β yes that's a real page name, no I will not be shortening it, it's iconic. grab a strawberry drink π and let's get into it.
β¨ NAME β¨
xcan_set_bittiming β the CAN set-bit-timing routine. that's it. that's the whole vibe check. π«
πΈ SYNOPSIS πΈ
int xcan_set_bittiming (struct net_device *ndev );
literally one argument, one return type, zero drama. we love a low-maintenance signature. π«Ά
π¦ ARGUMENTS π¦
ndevβ a pointer to thenet_devicestructure. that's your entry point, your main character, your whole interface to the network device. handle it with love. π
π₯ DESCRIPTION π₯
so this one is, like, the driver's set-bittiming routine. it's the function that does the bit-timing setting for the driver. that's the tea, that's the entire description, and honestly? sometimes less is more, periodt. π
π RETURN π
0on success β slay, we ate, everything worked β¨- a failure value on error β not slay, but it happens, and you will be checking for it π
π SEE ALSO π
the whole friend group, no cap. start with the kernel file itself:
- Kernel file
./drivers/net/can/xilinx_can.c struct xcan_priv(9)
and then the entire extended squad, in order because I'm not about to leave anyone out of the group chat:
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_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_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)
like I said. huge friend group. iykyk π§
ngl bestie, this page is short but it's still canon β go read the SEE ALSO list before you touch anything, fr fr π
and that's the whole page, babe π« β brought to you from ./drivers/net/can, stamped October 2026, filed forever under xcan_set_bittiming(9). mwah, go set some bit timing, you've got this πβ
π¦ 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