OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / linux-man9 / original / man9 / skb_peek.9
1 .\" -*- nroff -*-
2 .\"
3 .\" copyright (C) 1997 Cyrus Durgin <cider@speakeasy.org>
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one
13 .\" 
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\" 
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .TH SKB_PEEK 9 "November 24, 1997" "Linux DDI" "Networking Functions"
26 .hlm 0
27 .na
28 .SH NAME
29 skb_peek \- peek an sk_buff
30 .SH SYNOPSIS
31 .B #include <linux/skbuff.h>
32 .HP
33 .BI "struct sk_buff *skb_peek(struct sk_buff_head " *list_ ");"
34 .hlm 1
35 .ad
36 .SH DESCRIPTION
37 The \fBskb_peek\fP function extracts the head element of \fIlist_\fP,
38 without modifying \fIlist_\fP.  It is important to note that this is
39 not necessarily a safe operation, as \fIlist_\fP maintains the original
40 sk_buff, and other operations on \fIlist_\fP may effect it.  To be safe,
41 either disable interrupts using \fBcli\fP(9), call \fBskb_peek\fP, copy
42 the data necessary to continue, and re-enable interrupts using
43 \fBsti\fP(9), or use \fBskb_dequeue\fP(9).
44 .SH "RETURN VALUE"
45 Returns a pointer to sk_buff if there is a next element on the \fIlist_\fP.
46 Otherwise, returns NULL.
47 .SH AVAILABILITY
48 Linux 1.0+
49 .SH "SEE ALSO"
50 .hlm 0
51 .na
52 .BR intro "(9), " skb_unlink "(9), " skb_dequeue "(9)"
53 .ad
54 .hlm 1
55 .PP
56 /usr/src/linux/net/appletalk/ddp.c /usr/src/linux/net/core/datagram.c /usr/src/linux/net/ipv4/tcp.c /usr/src/linux/net/ipv4/udp.c /usr/src/linux/net/unix/af_unix.c
57 .SH AUTHOR
58 Cyrus Durgin <cider@speakeasy.org>