pch_gbe_get_ethtool_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pch_gbe_get_ethtool_stats(9) β€” a Kernel API Manual moment πŸ’…

okay so bestie, welcome to the Kernel API Manual entry for pch_gbe_get_ethtool_stats(9) β€” yes the whole function name is the title, we're doing full government name energy today πŸ‘‘


✨ NAME ✨

pch_gbe_get_ethtool_stats β€” returns statistics about the device πŸ“ŠπŸ’–

like, it literally goes and fetches the stats for your device. that's the whole vibe check.


πŸ¦‹ SYNOPSIS πŸ¦‹

void pch_gbe_get_ethtool_stats (struct net_device *netdev , struct
ethtool_stats *stats , u64 *data );

it returns void btw β€” no return value, she just does the thing and leaves. main character behavior honestly 🫢


🌸 ARGUMENTS 🌸

  • netdev β€” the network interface device structure πŸ’»βœ¨ this is the struct net_device * bestie, the actual device we're snooping on
  • stats β€” the ethtool statue structure πŸ—Ώ (yes the original says "statue", we're keeping it, it's iconic, no cap) β€” this is the struct ethtool_stats *
  • data β€” pointer of read status area πŸŽ€ this is your u64 *, the place where the read status lives

πŸŽ€ SEE ALSO πŸŽ€

the kernel file that houses all this goodness, iykyk:

./drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c πŸ“

and the whole friend group of functions that hang out with it, literally the entire squad:


πŸ’€ friendly reminder: pch_gbe_get_ethtool_stats gives you back void, so don't go looking for a return value, she's not giving you one πŸ™ˆ

and that's the page! signing off from ./drivers/net/ethernet/oki-sem... dated October 2026, on the pch_gbe_get_ethtool_stats(9) footer tip β€” slay, go read your device stats responsibly bestie πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from