batadv_frag_purge_orig(9)
π batadv_frag_purge_orig β the kernel API manual, bestie edition π
Okay so real talk, the manual page is literally called batadv_frag_purge_orig and it lives in the kernel API manual, and today we're gonna make it make sense, mkay? β¨
πΈ NAME πΈ
batadv_frag_purge_orig β free fragments associated to an orig π
Like, it yeets the fragments that are tied to an orig. That's the whole vibe. No cap.
π¦ SYNOPSIS π¦
void batadv_frag_purge_orig (struct batadv_orig_node *orig_node , bool
(*check_cb)(struct batadv_frag_table_entry *) );
Not me obsessing over a void return β it gives "I do the work and I don't ask for credit" main character energy fr fr. π
β¨ ARGUMENTS β¨
orig_nodeβ the originator you're freeing fragments from π«Ά like, this is the node, and the fragments belong to it, and we are releasing them. Bye bestie!check_cbβ an optional function that tells you if an entry should be purged π it's a callback, it takes astruct batadv_frag_table_entry *, and it's literally the bouncer at the club deciding who gets in (or, uh, who gets out π« ). Skip it and, well, it's optional β that's the whole point, iykyk.
lowkey important: check_cb is optional, but if you do pass it, it's the thing that decides whether an entry gets purged. It's giving "you had one job and it was quality control" π
π SEE ALSO π
Kernel file ./net/batman-adv/fragmentation.c β and the whole friend group, because fragmentation in batman-adv is a family π§π:
batadv_frag_clear_chain(9)batadv_frag_size_limit(9)batadv_frag_init_chain(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)
Go read all of them. Not a suggestion. Okay it's a suggestion but like, a strong one π
π reminder that this is a kernel API page β the docs are your bestie but the source is the truth. Slay responsibly.
okay that's the whole page, mwah π so like, this came out of ./net/batman-adv and it's dated October 2026 β screenshot it, frame it, put it on the fridge, batadv_frag_purge_orig(9) ate and left no crumbs ππΈ
π¦ 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