batadv_mcast_get_bridge(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_mcast_get_bridge(9) πŸ’–

okay so this is from the Kernel API Manual, and bestie, it's a tiny little function page but it's lowkey iconic in its own way. it's all about grabbing the bridge that's sitting on top of your mesh interface β€” if there even is one. let's get into it 🫢


✨ NAME ✨

batadv_mcast_get_bridge β€” get the bridge on top of the meshif if it exists

like, that's the whole vibe. if it exists. no bridge? no problem, you just get nothing back. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct net_device * batadv_mcast_get_bridge (struct net_device *mesh_iface );

πŸŽ€ ARGUMENTS πŸŽ€

  • mesh_iface β€” the netdev struct of the mesh interface. that's your starting point, bestie, the thing you're asking "hey do you have a bridge on top of you?" πŸ‘‘

🌸 DESCRIPTION 🌸

so here's the tea β˜• β€” if the given mesh interface has a bridge on top of it, then this function bumps up the refcount of the according net device. that's it. that's the whole job. not me finding a one-line function and being obsessed with it πŸ’€

no bridge? then nothing gets bumped, nothing happens, and you get NULL back (more on that below πŸ‘‡).


⭐ RETURN ⭐

  • NULL if no such bridge exists β€” like, there's just no bridge up there, sorry bestie 😭
  • otherwise, the net device of the bridge πŸŽ‰ the thing you asked for, handed right to you

🌈 SEE ALSO 🌈

the group chat is HUGE, ngl. here's the whole crew, all from the kernel file ./net/batman-adv/multicast.c:


and that's the whole page, bestie 🧚✨ it comes from the ./net/batman-adv source directory, dated October 2026, and it's page batadv_mcast_get_bridge(9) of the Kernel API Manual. go forth and find your bridges πŸ’œ

πŸ“¦ where this page comes from