batadv_netl...meter_notify(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Okay so bestie, welcome to the Kernel API Manual entry for batadv_netl...meter_notify(9) β€” yes the title's got that truncation moment, it's giving "my name is too long for the tab bar" energy, and honestly? Relatable. πŸŽ€

batadv_netlink_tpmeter_notify β€” send tp_meter result via netlink to client πŸ’Œ

That's the whole vibe. The throughput meter did its little thing, the numbers came in, and now somebody has to actually tell the client about it. That somebody is this function. Main character energy fr fr. ✨


✨ SYNOPSIS ✨

int batadv_netlink_tpmeter_notify (struct batadv_priv *bat_priv , const
       u8 *dst , u8 result , u32 test_time , u64 total_bytes , u32 cookie );

Six arguments, one return value, zero chill. Let's go through them one by one because every single one matters. 🫢


🌸 ARGUMENTS 🌸

  • bat_priv β€” the bat priv with all the mesh interface information. It's literally the whole mesh's business, all bundled up β€” every interface detail lives here. πŸ‘‘
  • dst β€” destination of the tp_meter session. Like, where the session was pointed. πŸ“
  • result β€” reason for the tp_meter session stop. Why did the session end? This u8 is holding the receipts. 🧾
  • test_time β€” total time of the tp_meter session. The u32 clock on the whole thing. ⏱️
  • total_bytes β€” bytes acked to the receiver. That's a u64, because bytes get big, bestie. πŸ“
  • cookie β€” cookie of the tp_meter session. Not a snack (sadly πŸͺ), just the session's lil identifier so everybody knows which session we're talking about. πŸŽ€

πŸ”₯ RETURN πŸ”₯

0 on success, < 0 on error.

That's it. That's the whole return section. Zero means slay, negative means something went sideways. πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

Everything in the netlink cinematic universe, all linked up. First, the source:

Kernel file ./net/batman-adv/netlink.c and enum batadv_netlink_multicast_groups(9)

Then the whole friend group, alphabetically-adjacent and long, but I'm not skipping a single one because they're all icons:

Not me listing thirty-two SEE ALSO entries and loving every second of it. The cross-reference game is strong here, iykyk. πŸ’…

🌈 SIGN-OFF 🌈

This lil page lives in ./net/batman-adv, it's dated October 2026, and it answers to the name batadv_netl...meter_notify(9) β€” truncated title and all, we stan a consistent brand. πŸ§šπŸ’œ Byeee, go notify some clients! πŸ‘‘

πŸ“¦ where this page comes from