xcan_write_frame(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a net_device structure πŸ¦‹ like, the network device you're doing all this for. your main character device, if you will.
  • skb β€” an sk_buff pointer 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:

like… that's the whole roster πŸ”₯ iykyk.


ok and one lil vibe-check note: xcan_write_frame returns void β€” 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