skb_dst_set_noref(9)

skb_dst_set_noref9

Sets skb dst, hopefully, without taking reference

Usage

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

Arguments

skb

buffer

dst

dst entry

Overview

Sets skb dst, assuming a reference was not taken on dst. If dst entry is cached, we do not take reference and dst_release will be avoided by refdst_drop. If dst entry is not cached, we take reference, so that last dst_release can destroy the dst immediately.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.