batadv_frag_merge_packets(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_frag_merge_packets(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this one's a whole function page and honestly? it's iconic. it lives in the kernel, it deals with fragments, and it's about to make your whole chain situation make sense 🫢


🌸 NAME 🌸

batadv_frag_merge_packets β€” merge a chain of fragments πŸ’–

like, literally take a chain of fragments and merge them. that's the vibe. that's the whole job. no cap.


✨ SYNOPSIS ✨

struct sk_buff * batadv_frag_merge_packets (struct hlist_head *chain );

she returns a struct sk_buff *, she takes one argument, she's booked and busy πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • chain β€” head of chain with fragments 🌈 this is the pointer to the struct hlist_head that sits at the front of your little fragment friend group. she's the main character of the list, everybody else follows her.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜•:

Expand the first skb in the chain and copy the content of the remaining skb's into the expanded one. that's it. that's the whole glow-up β€” first one gets bigger, the rest get absorbed into her. it's giving merger. it's giving "you're coming with me" energy πŸ’€

and after doing so, clear the chain. periodt. the chain gets emptied out, no leftovers, no crumbs, we don't do clutter here 🧹✨

fr fr though β€” first skb expands, the others get copied in, then the chain is cleared. those three things, in that order, that's the whole personality of this function πŸŽ€

πŸ‘‘ RETURN πŸ‘‘

the merged skb or NULL on error 🫢

so like, either you get your beautiful merged sk_buff *, or you get NULL and you have to deal with it. no in-between, she's not ambiguous πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./net/batman-adv/fragmentation.c β€” go read her, she's the source of truth πŸ“–πŸ’–

and then the whole friend group:

ngl that's a stacked lineup 😭 every single one of them, exactly as listed, no skips, no edits, iykyk 🌟


and that's the page bestie!! πŸ’œ from ./net/batman-adv, dated October 2026, signed off on batadv_frag_merge_packets(9) β€” stay fragmented, stay fabulous, slay πŸ¦‹βœ¨πŸŽ€

πŸ“¦ where this page comes from