t4_get_port_stats_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ t4_get_port_stats_offset πŸ¦‹

okay so real talk: this page is straight out of the Kernel API Manual, and it's about exactly one little function that grabs your port stats β€” but like, relative to a snapshot you took earlier. no cap, that's the whole vibe. it's giving "before and after" energy πŸ’…


✨ NAME ✨

t4_get_port_stats_offset β€” collect port stats relative to a previous snapshot

like, you hand it a fresh stats struct and an old one, and it does the little difference dance. periodt. πŸ’–


🌸 SYNOPSIS 🌸

void t4_get_port_stats_offset (struct adapter *adap , int idx , struct port_stats *stats , struct port_stats *offset );

literally the whole signature, no crumbs left behind 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • adap β€” The adapter. your main character, the whole NIC situation πŸ¦‹
  • idx β€” The port. which one we're peeking at, bestie πŸ‘€
  • stats β€” Current stats to fill. the shiny new numbers go in here ✨
  • offset β€” Previous stats snapshot. the "before" pic for the glow-up comparison πŸ“Έ

πŸ”₯ SEE ALSO πŸ”₯

first up, the source file itself β€” go read it, iykwΔ«k:

  • Kernel file ./drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

and then... okay the related-pages list here is actually iconic, it's a whole friend group 🫢 every single one, in order, no gatekeeping:


and that's the page, bestie β€” no notes, no filler, just vibes and stats πŸ’œ

source/version: ./drivers/net/ethernet/chelsio... 🌈 date: October 2026 🌸 mwah, stan the kernel docs πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from