ctucan_do_set_mode(9)
okay so bestie, welcome to the ctucan_do_set_mode(9) page from the Kernel API Manual β it's literally the kernel function that handles setting the driver's mode, and we're gonna get into it π
β¨
β¨ NAME β¨
ctucan_do_set_mode β sets the mode of the driver. That's the whole function-name vibe: it sets modes, periodt π
π¦ SYNOPSIS π¦
Here's the signature, untouched, because we do not mess with signatures:
int ctucan_do_set_mode (struct net_device *ndev , enum can_mode mode );
πΈ ARGUMENTS πΈ
ndevβ a pointer to thenet_devicestructure. That's the device's main character energy right there π«Άmodeβ tells the mode of the driver. That's the mode info going in, no cap.
π§ DESCRIPTION π§
This checks the driver's state and calls the corresponding modes to set. So it's like: vibe check the driver's state, then call the corresponding modes to set. Lowkey straightforward, highkey important π₯
π RETURN π
Returns 0 on success, and a failure value on error. So 0 is the slay outcome; anything else means error city, bestie π
π SEE ALSO π
Kernel file: ./drivers/net/can/ctucanfd/ctucanfd_base.c
The whole kernel group chat:
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_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)ctucan_get_berr_counter(9)
iykyk π
okay bestie, that's the whole page π source/version: ./drivers/net/can/ctucanfd; date: October 2026; manual name: ctucan_do_set_mode(9). mwah, go set some modes responsibly πβ¨
π¦ 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