netdev_sent_queue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… netdev_sent_queue β€” Kernel API Manual ✨

okay so bestie, welcome to the glow-up of netdev_sent_queue(9) β€” it lives in the Kernel API Manual and it's basically the "hey queen, I handed off some bytes" text message your network driver sends to the kernel. let's get into it 🫢


🌸 NAME 🌸

netdev_sent_queue β€” report the number of bytes queued to hardware

like, literally just tattling on how much stuff you pushed to the hardware. no cap. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

void netdev_sent_queue (struct net_device *dev , unsigned int bytes );

(yes, the spacing is exactly like that, she's quirky, we respect it πŸ’…)


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the network device. your main character struct. πŸ‘‘
  • bytes β€” number of bytes queued to the hardware device queue πŸ“

⭐ DESCRIPTION ⭐

so what you're doing here is reporting the number of bytes queued for sending/completion to the network device hardware queue#0. yep, queue#0 specifically, she's that girl.

bytes should be a good approximation β€” and it should exactly match the netdev_completed_queue bytes. not "close enough", not "vibes-based", exactly match. the way that matters 😭

this is typically called once per packet, from ndo_start_xmit. one packet, one call, iconic behavior periodt. πŸ”₯


🌈 SEE ALSO 🌈

Kernel file ./include/linux/netdevice.h β€” and the whole friend group below, because nobody does networking alone 🧚

and that's the whole page, bestie β€” go forth and report your bytes accurately, the kernel is counting on you πŸ’œβœ¨

🌸 courtesy of ./include/linux, dated October 2026 β€” mwah, ty for reading, ily, bye! πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from