xcan_write_frame(9)
π xcan_write_frame(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this one's about xcan_write_frame, and it's genuinely a little one-function wonder. no cap.
πΈ NAME πΈ
xcan_write_frame β the function that literally writes a frame to the hardware π«Ά that's it, that's the whole job, and she does it well.
β¨ SYNOPSIS β¨
void xcan_write_frame (struct net_device *ndev , struct sk_buff *skb ,
int frame_offset );
so you call her, she takes three things, she writes a frame. iconic behaviour honestly π
π ARGUMENTS π
ndevβ a pointer to anet_devicestructure π¦ like, the network device you're doing all this for. your main character device, if you will.skbβ ansk_buffpointer that contains the data to be Txed π so likeβ¦ the actual payload that's about to leave the building. bye bestie, go be transmitted βοΈframe_offsetβ the register offset to write the frame to β this is the "where" of it all β pick your address, she'll put the frame there. no guessing, you gotta tell her fr fr.
π SEE ALSO π
the whole friend group π β go say hi to the rest of the xilinx_can.c girlies:
- 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),set_reset_mode(9),xcan_set_bittiming(9),xcan_chip_start(9)xcan_do_set_mode(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β¦ that's the whole roster π₯ iykyk.
ok and one lil vibe-check note:xcan_write_framereturnsvoidβ she doesn't report back, she just does the thing and dips π no exit status, no return value, nothing. so don't be out here checking a return that does not exist, bestie π
and that's the page!! πβ¨π it lives in ./drivers/net/can, and this lil gem is dated October 2026 β so like, mark your calendar, girlies π. slay, bye! π
π¦πΈ
π¦ 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