---
name: "skb_peek"
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_peek"
---

# skb\_peek(9)

peek at the head of an sk\_buff\_head

## NAME

skb\_peek - peek at the head of an sk\_buff\_head

## SYNOPSIS

**struct sk\_buff \* skb\_peek(const struct sk\_buff\_head \*** *list\_***);**

## ARGUMENTS

*list\_*

list to peek at

## DESCRIPTION

Peek an sk\_buff. Unlike most other operations you \_MUST\_ be careful with this one. A peek leaves the buffer on the list and someone else may run off with it. You must hold the appropriate locks or have a private queue to do this.

Returns **NULL** for an empty list or a pointer to the head element. The reference count is not incremented and the reference is therefore volatile. Use with caution.

## COPYRIGHT
