batadv_tp_init_recv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_tp_init_recv(9) β€” the Kernel API Manual moment

okay so bestie, welcome to the batadv_tp_init_recv(9) page, straight out of the kernel API manual and honestly it's giving "small function, big responsibilities" πŸŽ€


✨ NAME ✨

batadv_tp_init_recv β€” return matching or create new receiver tp_vars

like, it either finds you the receiver vars that already match, or it makes you a fresh new one. matchmaker energy fr fr πŸ’–


🌸 SYNOPSIS 🌸

struct batadv_tp_receiver * batadv_tp_init_recv (struct batadv_priv
*bat_priv , const struct batadv_icmp_tp_packet *icmp );

look at that signature bestie, it's literally returning a struct batadv_tp_receiver * and taking two args. iconic. πŸ¦‹


🫢 ARGUMENTS 🫢

  • bat_priv β€” the bat priv with all the mesh interface information. it's basically the main character holding the whole mesh together πŸ’…
  • icmp β€” the received icmp tp msg. yes, the one that just showed up. πŸ™ˆ

⭐ RETURN ⭐

the corresponding tp_vars β€” or NULL on errors 😭 so like, always check before you go dereferencing it, no cap.


🌈 SEE ALSO 🌈

so many friends, so much lore, let's get into it β€” the kernel file lives at ./net/batman-adv/tp_meter.c and these are all its besties:

like I said. everyone showed up to the party. πŸ‘‘


ngl bestie, NULL on errors is real β€” handle it or it's giving segfault πŸ’€

okay that's the whole page and yes it ate πŸ’… the source is ./net/batman-adv, dated October 2026, and this whole thing is batadv_tp_init_recv(9) lore β€” go forth and init those receivers, you've got this πŸ§šπŸ’œ

πŸ“¦ where this page comes from