batadv_frag_init_chain(9)
π batadv_frag_init_chain(9) β like, the Kernel API Manual girlies know π
okay so bestie, welcome to batadv_frag_init_chain(9), straight out of the Kernel API Manual β¨ β she's a little function in the batman-adv fragmentation fam and she's here to get your fragment chain all cute and ready. let's go π¦
β¨ NAME β¨
batadv_frag_init_chain β check and prepare fragment chain for new fragment ππ
πΈ SYNOPSIS πΈ
bool batadv_frag_init_chain (struct batadv_frag_table_entry *chain , u16
seqno );
no cap, that's literally the whole signature π
π ARGUMENTS π
chainβ the chain in the fragments table that we're about to init, bestie. that's her. πseqnoβ sequence number of the received fragment π
π§ DESCRIPTION π§
so what she actually does π«: she makes chain ready for a fragment with sequence number "seqno". and if the existing entries are giving "old" sequence number energy? she deletes them. gone. periodt πβ¨
β οΈ okay important one, don't skip this: the caller must hold chain->lock. fr fr, no exceptions π
β RETURN β
she returns true if the chain is empty and you can just insert the new fragment without searching for the right position π«Ά lowkey the easiest path, we love her for that β¨
π₯ SEE ALSO π₯
- Kernel file
./net/batman-adv/fragmentation.c batadv_frag_clear_chain(9)batadv_frag_purge_orig(9)batadv_frag_size_limit(9)batadv_frag_insert_packet(9)batadv_frag_merge_packets(9)batadv_skb_is_frag(9)batadv_frag_skb_buffer(9)batadv_frag_skb_fwd(9)batadv_frag_create(9)batadv_frag_send_packet(9)
like, the whole friend group, iykyk ππ¦
and that's the page!! mwah π this icon lives in ./net/batman-adv and she's stamped October 2026 β see u in the next manpage bestie, stay slay πΈππ
π¦ 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