batadv_mcas..._rtr4_update(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_mcast_want_rtr4_update(9) β€” the Kernel API Manual page your group chat needed

okay so this is a page straight out of the Kernel API Manual, and it's all about one lil function: batadv_mcast_want_rtr4_update. no cap, the name is a mouthful, but the job is honestly so simple bestie. it's the "hey, did your rtr4 vibes change? let me fix the counter" function. let's get into it πŸ¦‹


✨ NAME ✨

batadv_mcast_want_rtr4_update β€” update want-all-rtr4 counter and list πŸ’«

like, that's the whole thing. it updates a counter and a list. the want-all-rtr4 ones. slay.


🌸 SYNOPSIS 🌸

void batadv_mcast_want_rtr4_update (struct batadv_priv *bat_priv ,
struct batadv_orig_node *orig , u8 mcast_flags );

void function, three args, no return value, no drama. πŸŽ€


πŸ’– ARGUMENTS πŸ’–

  • bat_priv β€” the bat priv with all the mesh interface information. it's the main character holding literally everything about the mesh iface. πŸ‘‘
  • orig β€” the orig_node whose multicast state might have changed. might have, bestie, that's the whole premise of this function. πŸ¦‹
  • mcast_flags β€” flags indicating the new multicast state. freshly updated flags, hot off the presses. ✨

🧚 DESCRIPTION 🧚

okay so here's the tea. if the BATADV_MCAST_WANT_NO_RTR4 flag of this originator, orig, has toggled β€” like, actually flipped β€” then this method updates the counter and the list accordingly. counter βœ… list βœ… done. that's it, that's the function. πŸ’…

⚠️ real talk though: the caller needs to hold orig->mcast_handler_lock. this is not a suggestion, this is not a vibe, this is a requirement. hold the lock, bestie. fr fr. πŸ”’

🌈 SEE ALSO 🌈

it lives in the kernel file ./net/batman-adv/multicast.c, and it has so many neighbors. like an entire extended family of multicast functions. here's every single one, no cap, nobody left out 🫢

that's 58 functions bestie, i counted, we're so back πŸ”₯


and that's the whole page!! mwah πŸ’‹ sign-off time: this one's from ./net/batman-adv, dated October 2026, and it's filed under that same batadv_mcas..._rtr4_update(9) header at the top and bottom of the original. go hold that mcast_handler_lock and slay your multicast counters, ily πŸŽ€πŸ’œ

πŸ“¦ where this page comes from