batadv_mcas..._shrink_fill(9)
π
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 π§):
- Kernel file
./net/batman-adv/multicast_forw.c batadv_mcast_forw_skb_push(9)batadv_mcast_forw_push_padding(9)batadv_mcast_forw_push_est_padding(9)batadv_mcast_forw_orig_entry(9)batadv_mcast_forw_push_dest(9)batadv_mcast_forw_push_dests_list(9)batadv_mcast_forw_push_tt(9)batadv_mcast_forw_push_want_all(9)batadv_mcast_forw_push_want_rtr(9)batadv_mcast_forw_scrape(9)batadv_mcast_forw_push_scrape_padding(9)batadv_mcast_forw_push_insert_padding(9)batadv_mcast_forw_push_adjust_padding(9)batadv_mcast_forw_push_dests(9)batadv_mcast_forw_push_tracker(9)batadv_mcast_forw_push_tvlvs(9)batadv_mcast_forw_push_hdr(9)batadv_mcast_forw_scrub_dests(9)batadv_mcast_forw_shrink_pack_dests(9)batadv_mcast_forw_shrink_align_offset(9)batadv_mcast_forw_shrink_update_headers(9)batadv_mcast_forw_shrink_move_headers(9)batadv_mcast_forw_shrink_tracker(9)batadv_mcast_forw_packet(9)batadv_mcast_forw_tracker_tvlv_handler(9)batadv_mcast_forw_packet_hdrlen(9)batadv_mcast_forw_expand_head(9)batadv_mcast_forw_push(9)batadv_mcast_forw_mcsend(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms