batadv_sum_counter(9)
π 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 teaidxβ 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 π:
batadv_skb_head_push(9)batadv_interface_stats(9)batadv_interface_set_mac_addr(9)batadv_interface_change_mtu(9)batadv_interface_set_rx_mode(9)batadv_interface_tx(9)batadv_interface_rx(9)batadv_meshif_vlan_release(9)batadv_meshif_vlan_get(9)batadv_meshif_create_vlan(9)batadv_meshif_destroy_vlan(9)batadv_interface_add_vid(9)batadv_interface_kill_vid(9)batadv_set_lockdep_class_one(9)batadv_set_lockdep_class(9)batadv_meshif_init_late(9)batadv_meshif_slave_add(9)batadv_meshif_slave_del(9)batadv_get_drvinfo(9)batadv_get_strings(9)batadv_get_ethtool_stats(9)batadv_get_sset_count(9)batadv_meshif_free(9)batadv_meshif_init_early(9)batadv_meshif_validate(9)batadv_meshif_newlink(9)batadv_meshif_destroy_netlink(9)batadv_meshif_is_valid(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms