---
name: "skb_dst_set_noref"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/skb_dst_set_noref"
---

# skb\_dst\_set\_noref(9)

sets skb dst, hopefully, without taking reference

## NAME

skb\_dst\_set\_noref - sets skb dst, hopefully, without taking reference

## SYNOPSIS

**void skb\_dst\_set\_noref(struct sk\_buff \*** *skb***, struct dst\_entry \*** *dst***);**

## ARGUMENTS

*skb*

buffer

*dst*

dst entry

## DESCRIPTION

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.

## COPYRIGHT
