batadv_interface_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the batadv_interface_stats(9) page from the Kernel API Manual β€” manual name folded in like a cute lil name tag 🫢. This is the mesh-interface stats situation, and honestly it’s giving β€œquietly useful icon” energy.

✨ NAME ✨

batadv_interface_stats β€” return netdev stats for a mesh interface. That’s the whole vibe: you want the netdev stats, and this is the one serving them πŸ’….

πŸ¦‹ SYNOPSIS πŸ¦‹

struct net_device_stats * batadv_interface_stats (struct net_device *dev
);

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the mesh interface to query. That’s the interface you’re asking for stats about, no mystery.

πŸ’… DESCRIPTION πŸ’…

Aggregate the per-CPU traffic counters into the standard netdev stats structure. Lowkey the whole job is gathering those per-CPU counters up into the standard structure β€” clean, simple, slay ✨.

🌈 RETURN 🌈

A pointer to the populated net_device_stats structure β€” yes, it returns struct net_device_stats *, and yes, that pointer is the prize πŸŽ€.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./net/batman-adv/mesh-interface.c β€” that’s the home base. Also go say hi to these icons:


mwah πŸ’‹ β€” source/version: ./net/batman-adv Β· date: October 2026 Β· manual: batadv_interface_stats(9) 🫢

πŸ“¦ where this page comes from