i40e_get_net...stats_struct(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 i40e_get_netdev_stats_struct(9) β€” the Kernel API Manual, section 9, bestie πŸ’…

okay so this is a page from the Kernel API Manual, section 9, and today's main character is i40e_get_netdev_stats_struct. She's short, she's sweet, she's got a lot of friends in the SEE ALSO (like, an unreasonable amount of friends, we'll get there πŸ’€).


✨ NAME ✨

i40e_get_netdev_stats_struct β€” Get statistics for netdev interface πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void i40e_get_netdev_stats_struct (struct net_device *netdev , struct
rtnl_link_stats64 *stats );

πŸ’– ARGUMENTS πŸ’–

  • netdev β€” the network interface device structure. it's giving "which interface are we talking about" energy 🫢
  • stats β€” the data structure where the statistics get stored. the lil home where the numbers live 🏠

🌈 DESCRIPTION 🌈

So the deal is: this one returns the address of the device statistics structure. That's what the page says, fr fr β€” literally "returns the address of the device statistics structure."

And the tea β˜• about when the numbers are real: the statistics are actually updated from the service task. so like, this isn't the thing doing the updating, bestie β€” that's somebody else's job (iykyk, go peek at the SEE ALSO).

ok and yes, the synopsis says void while the description talks about returning an address β€” not me starting drama, I'm just relaying exactly what the page says πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

right so. buckle up. this function knows everybody. the kernel file it lives in:

  • Kernel file ./drivers/net/ethernet/intel/i40e/i40e_main.c

and now the full guest list, no plus-ones skipped πŸ’…

like. that's the whole friend group. genuinely obsessed with the range 🫢


and that's the page!! no cap, that's everything πŸ’œ

mwah πŸ’‹ β€” this cutie came from the source tree at ./drivers/net/ethernet/intel/i40e, and she was dated October 2026. bye bestie, go read your stats πŸŽ€βœ¨

πŸ“¦ where this page comes from