batadv_mcast_mla_list_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ batadv_mcast_mla_list_free πŸŽ€

okay so this is a page straight out of the Kernel API Manual, bestie β€” a whole little section-9 situation for one tiny function that does one tiny job, and honestly? it ate. πŸ’…


✨ NAME ✨

batadv_mcast_mla_list_free β€” free a list of multicast addresses πŸ¦‹

like, the whole personality of this function is "cleanup duty" and it's lowkey serving. no cap.


🌸 SYNOPSIS 🌸

void batadv_mcast_mla_list_free (struct hlist_head *mcast_list );

that's it. that's the whole thing. returns nothing (void, queen of not giving anything back), takes exactly one pointer to a struct hlist_head. periodt. πŸ’œ


🫢 ARGUMENTS 🫢

  • mcast_list β€” the list to free. literally the list you want freed, that's the assignment. hand it over and it gets taken care of. 🧚

πŸ”₯ DESCRIPTION πŸ”₯

Removes and frees all items in the given mcast_list. every single one. not a summary, not a vibe check, an actual removal + free β€” so once it's done, don't be out here touching those items again, bestie, they are gone gone. 😭

it's giving "take out the trash and take the bin with it" energy. iconic behavior honestly. ✨


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file is ./net/batman-adv/multicast.c and it apparently contains every friend this function has ever had β€” so here's the whole group chat, no one left on read: 🫢

batadv_mcast_start_timer(9), batadv_mcast_get_bridge(9), batadv_mcast_mla_rtr_flags_meshif_get_ipv4(9), batadv_mcast_mla_rtr_flags_meshif_get_ipv6(9), batadv_mcast_mla_rtr_flags_meshif_get(9), batadv_mcast_mla_rtr_flags_bridge_get(9), batadv_mcast_mla_rtr_flags_get(9), batadv_mcast_mla_forw_flags_get(9), batadv_mcast_mla_flags_get(9), batadv_mcast_mla_is_duplicate(9), batadv_mcast_mla_meshif_get_ipv4(9), batadv_mcast_mla_meshif_get_ipv6(9), batadv_mcast_mla_meshif_get(9), batadv_mcast_mla_br_addr_cpy(9), batadv_mcast_mla_bridge_get(9), batadv_mcast_mla_tt_retract(9), batadv_mcast_mla_tt_add(9), batadv_mcast_querier_log(9), batadv_mcast_bridge_log(9), batadv_mcast_flags_log(9), batadv_mcast_mla_flags_update(9), __batadv_mcast_mla_update(9), batadv_mcast_mla_update(9), batadv_mcast_is_report_ipv4(9), batadv_mcast_forw_mode_check_ipv4(9), batadv_mcast_is_report_ipv6(9), batadv_mcast_forw_mode_check_ipv6(9), batadv_mcast_forw_mode_check(9), batadv_mcast_forw_want_all_ip_count(9), batadv_mcast_forw_rtr_count(9), batadv_mcast_forw_mode_by_count(9), batadv_mcast_forw_mode(9), batadv_mcast_forw_send_orig(9), batadv_mcast_forw_tt(9), batadv_mcast_forw_want_all_ipv4(9), batadv_mcast_forw_want_all_ipv6(9), batadv_mcast_forw_want_all(9), batadv_mcast_forw_want_all_rtr4(9), batadv_mcast_forw_want_all_rtr6(9), batadv_mcast_forw_want_rtr(9), batadv_mcast_forw_send(9), batadv_mcast_want_unsnoop_update(9), batadv_mcast_want_ipv4_update(9), batadv_mcast_want_ipv6_update(9), batadv_mcast_want_rtr4_update(9), batadv_mcast_want_rtr6_update(9), batadv_mcast_have_mc_ptype_update(9), batadv_mcast_tvlv_flags_get(9), batadv_mcast_tvlv_ogm_handler(9), batadv_mcast_init(9), batadv_mcast_mesh_info_put(9), batadv_mcast_flags_dump_entry(9), batadv_mcast_flags_dump_bucket(9), __batadv_mcast_flags_dump(9), batadv_mcast_netlink_get_primary(9), batadv_mcast_flags_dump(9), batadv_mcast_free(9), batadv_mcast_purge_orig(9)

like… that's the whole friend group. iykyk 🌈


πŸ’€ real talk though: this frees memory, so anything still holding a pointer into that list after the call is in undefined-behavior territory. free it and let it go, bestie. πŸ™ˆ

and that's the page!! brought to you by ./net/batman-adv, dropping October 2026 β€” mwah, go forth and free your multicast address lists responsibly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from