ctucan_close(9)
π ctucan_close β the gen-z field guide β¨
okay so this is a page from the Kernel API Manual bestie, and honestly? it's a short one but it's iconic in its simplicity. we're talking about ctucan_close, the driver close routine. that's it. that's the whole vibe. π
πΈ NAME πΈ
ctucan_close β Driver close routine
like, literally the close routine for the driver. no cap. when this gets called, things are wrapping up. it's giving "closing time, you don't gotta go home but you gotta get out of here" energy. π«Ά
β¨ SYNOPSIS β¨
int ctucan_close (struct net_device *ndev );
so you call it with one thing, and it hands you back an int. that's the whole contract, bestie. clean. minimal. main character energy. π
π¦ ARGUMENTS π¦
ndevβ Pointer tonet_devicestructure. that's it. that's the one (1) thing you're passing in. it's a pointer, to anet_device, and you will be handing it over. no drama, no extra parameters, justndevand vibes. β
π RETURN π
returns 0 always. like, always always. no error codes, no surprises, no "well it depends." it's 0. every single time. the most consistent friend you've ever had. fr fr. π
lowkey love that for us β zero is such a slay return value because you never have to check it. but you know. still check it. old habits. π
π SEE ALSO π
buckle up bestie, this is the long part β the whole ctucanfd squad, all listed, all iconic, all worth a look:
- Kernel file
./drivers/net/can/ctucanfd/ctucanfd_base.c 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_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_get_berr_counter(9)
like, that is a roster. the whole family showed up to the group chat. π§ and yes, ctucan_open(9) is right there at the end β the close routine's other half. they're a package deal, iykyk. π₯
π reminder that this page lives at./drivers/net/can/ctucanfdand it's dated October 2026, and the page itself isctucan_close(9). go read the source, bestie, the source is always the real one. π
okay that's the page!! short and sweet and honestly a little mysterious, which is so on brand. 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