batadv_frag_init_chain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯

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