skb_dst_set_noref(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so we're in the Kernel API Manual, and this page is skb_dst_set_noref(9), bestie. The function is skb_dst_set_noref - sets skb dst, hopefully, without taking reference. That β€œhopefully” is lowkey doing so much emotional labor. πŸ’…βœ¨

✨ SYNOPSIS ✨

void skb_dst_set_noref (struct sk_buff *skb , struct dst_entry *dst );

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” buffer. yes ma'am, the buffer itself.
  • dst β€” dst entry. iconic little dst entry. πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

So skb_dst_set_noref sets the skb dst, assuming a reference was not taken on dst. That's the whole premise, bestie β€” no cap. 🫢

If dst entry is cached, we do not take reference and dst_release will be avoided by refdst_drop. Slay, no extra ref drama. πŸ’–

If dst entry is not cached, we take reference, so that last dst_release can destroy the dst immediately. That's the flow, periodt. ✨

🌈 SEE ALSO 🌈

Kernel file: ./include/linux/skbuff.h.

And then the whole extended skb universe, fr fr:


source/version: ./include/linux Β· date: October 2026 Β· manual: skb_dst_set_noref(9) β€” bye bestie, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from