1SKB_PEEK(9) Linux Networking SKB_PEEK(9)
2
3
4
6 skb_peek -
7
9 struct sk_buff * skb_peek(struct sk_buff_head * list_);
10
12 list_
13 list to peek at
14
16 Peek an sk_buff. Unlike most other operations you _MUST_ be careful
17 with this one. A peek leaves the buffer on the list and someone else
18 may run off with it. You must hold the appropriate locks or have a
19 private queue to do this.
20
21 Returns NULL for an empty list or a pointer to the head element. The
22 reference count is not incremented and the reference is therefore
23 volatile. Use with caution.
24
26Kernel Hackers Manual 2.6. June 2019 SKB_PEEK(9)