skb_rbtree_purge(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ skb_rbtree_purge(9) πŸŽ€

okay bestie, this lil page is from the Kernel API Manual, and it's literally about emptying a whole skb rbtree. The NAME vibe? skb_rbtree_purge β€” empty a skb rbtree. πŸ’…

🌸 NAME 🌸

skb_rbtree_purge β€” empty a skb rbtree. 🧚

✨ SYNOPSIS ✨

unsigned int skb_rbtree_purge (struct rb_root *root );

πŸŽ€ ARGUMENTS πŸŽ€

  • root β€” root of the rbtree to empty. Return value: the sum of truesizes of all purged skbs. πŸ’–

πŸ’… DESCRIPTION πŸ’…

okay so this one deletes all buffers on an sk_buff rbtree. Each buffer is removed from the list and one reference dropped. slay. ✨

This function does not take any lock. not one. πŸ™ˆ Synchronization should be handled by the caller (e.g., TCP out-of-order queue is protected by the socket lock). πŸ”’

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/core/skbuff.c, plus the whole squad:


and that's the tea πŸ“ source/version ./net/core, dated October 2026, page skb_rbtree_purge(9). bye bestie πŸ’œ

πŸ“¦ where this page comes from