set_reset_mode(9)
π set_reset_mode β NAME, bestie π
okay so like, set_reset_mode β it resets the CAN device mode. that's the whole vibe, that's the assignment β¨
it's a Kernel API page (that's the manual name for those keeping score π), section 9.
β¨ SYNOPSIS β¨
int set_reset_mode (struct net_device *ndev );
that's it. one function, one argument, one purpose. main character energy honestly π
π«Ά ARGUMENTS π«Ά
ndevβ pointer to anet_devicestructure π like, a literal pointer to the net device struct, no cap. hand it over and let the driver do its thing.
πΈ DESCRIPTION πΈ
so this is the driver reset mode routine π the driver literally enters into configuration mode. that's the whole plot. the way that this function just shows up and flips the driver into config mode?? iconic. periodt π
no extra lore, no secret side quests β reset mode routine, configuration mode, done. iykyk π¦
β RETURN β
0on success β¨- a failure value on error π (yes bestie, it can fail, check that return value fr fr)
π SEE ALSO π
the whole xcan family reunion, we love to see it π«Ά:
Kernel file ./drivers/net/can/xilinx_can.cstruct 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)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_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)
that's the whole page bestie, go read the other ones too, they're all linked above π
source/version: ./drivers/net/can Β· dated October 2026 β mwah, that's a wrap ππ
β¨
π¦ 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