ctucan_read_fault_state(9)
π ctucan_read_fault_state β the kernel API manual, but make it cute
okay so bestie, welcome to ctucan_read_fault_state(9) from the Kernel API Manual β¨ this one is short and sweet and honestly kind of iconic for it.
πΈ NAME πΈ
ctucan_read_fault_state β literally just reads the CTU CAN FD's fault confinement state. that's the whole job. she's a one-trick pony and she ate π
β¨ SYNOPSIS β¨
enum can_state ctucan_read_fault_state (struct ctucan_priv *priv );
so you call her, you hand her a priv, and she hands you back an enum can_state. no cap, that's it π
π¦ ARGUMENTS π¦
privβ pointer to private data π«Ά like, the controller's personal little diary of internals. hand it over, she knows what to do with it.
π RETURN π
she returns the fault confinement state of the controller β that's the vibe check result for your CAN controller's error situation, shipped straight back to you as an enum can_state. periodt.
π SEE ALSO π
if you're nosy (respectfully π), the kernel file lives at ./drivers/net/can/ctucanfd/ctucanfd_base.c β go read the source, it's giving main character energy.
and here's the whole friend group, all the sibling functions you can also call on (9):
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_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)
ngl the whole squad is listed above, so if this one didn't scratch the itch, one of her 26 besties definitely will ππ
and that's the page, bestie π this gem comes to you from ./drivers/net/can/ctucanfd, dated October 2026 β screenshot it, frame it, put it on your fridge, mwah ππ§ββοΈ
π¦ 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