batadv_mcas..._shrink_fill(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_mcast_forw_shrink_fill(9) β€” like, welcome to the Kernel API Manual bestie

okay so picture this: you're deep in the Kernel API Manual, section 9, and you've found batadv_mcast_forw_shrink_fill πŸŽ€. That's the whole title, we're not abbreviating, the truncation in the header is just the terminal being dramatic. Strap in, this one's a little swap-and-fill situation and honestly it's giving "tiny function, big responsibility" πŸ‘‘


✨ SYNOPSIS ✨

bool batadv_mcast_forw_shrink_fill (u8 *slot , u16 num_dests_slot );

that's it. that's the whole signature. no cap, she's compact 🫢


🌸 ARGUMENTS 🌸

  • slot β€” the zero-MAC destination entry in a tracker TVLV that we're trying to fill, like it's an empty seat at the function and we're the friend who's scouting the room for someone to sit in it πŸ’Ί
  • num_dests_slot β€” how many entries are left in the tracker TVLV from the slot and including the slot itself. yes, inclusive. yes, that matters. count it right or don't count at all πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

so what she actually does: she goes hunting πŸ”. Starting after the slot pointer you handed her, she searches the tracker TVLV for the next destination entry that does not have a zero MAC.

and if she finds one? she swaps it. πŸ” She takes that non-zero destination entry and trades places with the zero-MAC destination entry that slot is pointing at. The empty seat gets filled, the good entry moves up, everybody claps πŸ‘βœ¨

if she doesn't find one β€” nothing happens, no swap, no drama, we just move on πŸ’€


πŸ₯Ί RETURN πŸ₯Ί

  • true β€” the slot got swapped/filled successfully, slay πŸ’–
  • false β€” it didn't, and that's okay, we're still proud of her

πŸ‘€ SEE ALSO πŸ‘€

the kernel source, obviously (iykyk 🧚):

like, that's the whole friend group right there. she's not alone, she's in a fandom πŸ’œ


kudos to whoever lives in ./net/batman-adv, you're the main character fr fr 🌈

and that's the tea πŸ“ β€” this page came to you from ./net/batman-adv, dated October 2026, and it's batadv_mcas..._shrink_fill(9) forever in our hearts πŸ’« mwah πŸ’‹

πŸ“¦ where this page comes from