batadv_mcast_mla_bridge_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_mcast_mla_bridge_get(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes, the actual kernel manual, we're reading kernel docs together, this is our life now and honestly? iconic πŸŽ€


🌸 NAME 🌸

batadv_mcast_mla_bridge_get β€” get bridged-in multicast listeners πŸ¦‹


✨ SYNOPSIS ✨

int batadv_mcast_mla_bridge_get (struct net_device *dev , struct
hlist_head *mcast_list , struct batadv_mcast_mla_flags *flags );

like, it takes three things and returns an int, that's the whole vibe πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” a bridge slave, and we're grabbing multicast addresses from its bridge, not from the slave itself, iykyk 🫢
  • mcast_list β€” the list where all the found addresses get dropped πŸ’Œ
  • flags β€” the flags that tell you the new multicast state, very "state of the union" of it all ⭐

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” this function collects the multicast addresses of multicast listeners that live on foreign, non-mesh devices. and how did those devices get here? we gave them access to our mesh via a bridge sitting on top of the given mesh interface, dev. so all those found addresses get put into the given mcast_list. no cap, that's literally it πŸ’œ


πŸ”₯ RETURN πŸ”₯

  • -ENOMEM if memory allocation fails 😭 (the classic)
  • otherwise, the number of items that got added to mcast_list πŸŽ‰ periodt

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr β€” these all live in the kernel file ./net/batman-adv/multicast.c:


okay that's the whole page bestie, go read the source and slay πŸ’…βœ¨

shoutout to ./net/batman-adv, the source of all this, dated October 2026 β€” future vibes only πŸ§šπŸ’œ
πŸ“¦ where this page comes from