'\" t .\" Title: skb_peek .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SKB_PEEK" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" skb_peek \- peek at the head of an sk_buff_head .SH "SYNOPSIS" .HP \w'struct\ sk_buff\ *\ skb_peek('u .BI "struct sk_buff * skb_peek(const\ struct\ sk_buff_head\ *\ " "list_" ");" .SH "ARGUMENTS" .PP \fIlist_\fR .RS 4 list to peek at .RE .SH "DESCRIPTION" .PP 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\&. .PP Returns \fBNULL\fR 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\&. .SH "COPYRIGHT" .br