batadv_sum_counter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_sum_counter(9)

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes this is a real man page for a real kernel function, and no, it's not scary, i promise 🫢. Today's main character is batadv_sum_counter, living its best life over in the batman-adv mesh world πŸ¦‹.


🌸 NAME 🌸

batadv_sum_counter β€” sum the cpu-local counters for index idx πŸ’–

like literally that's it. that's the whole job. it adds up the per-CPU counters and hands you the total. iconic behaviour, no notes πŸ‘‘


✨ SYNOPSIS ✨

u64 batadv_sum_counter (struct batadv_priv *bat_priv , size_t idx );

so you hand it a bat_priv and an idx, and it gives you back a u64. simple. clean. ate πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv with all the mesh interface information πŸ¦‹ this is the big one, the main character of the struct world, it's holding all the mesh interface tea
  • idx β€” index of counter to sum up πŸ”₯ like, which counter, bestie. pick one. this is the one you're adding up

⭐ RETURN ⭐

sum of all cpu-local counters πŸ’– β€” yep, that's the whole vibe, you get the total back as a u64. no cap 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

okay so here's the whole friend group 🫢 β€” and they're all chillin' in the kernel file ./net/batman-adv/mesh-interface.c πŸ“:

like, that's the whole group chat πŸ’€ go read them too, iykyk 🧚


ngl bestie, if you made it this far you're lowkey a kernel girlie now πŸ’œ slay. periodt. πŸŽ€

and that's a wrap! this little love letter comes to you from ./net/batman-adv, dated October 2026, and it's filed under batadv_sum_counter(9) 🌸 bye bestie, go sum some counters πŸ’–βœ¨πŸ“

πŸ“¦ where this page comes from