'\" t .\" Title: skb_kill_datagram .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.12.2 .\" Language: English .\" .TH "SKB_KILL_DATAGRAM" "9" "July 2017" "Kernel Hackers Manual 4\&.12\&" "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_kill_datagram \- Free a datagram skbuff forcibly .SH "SYNOPSIS" .HP \w'int\ skb_kill_datagram('u .BI "int skb_kill_datagram(struct\ sock\ *\ " "sk" ", struct\ sk_buff\ *\ " "skb" ", unsigned\ int\ " "flags" ");" .SH "ARGUMENTS" .PP \fIstruct sock * sk\fR .RS 4 socket .RE .PP \fIstruct sk_buff * skb\fR .RS 4 datagram skbuff .RE .PP \fIunsigned int flags\fR .RS 4 MSG_ flags .RE .SH "DESCRIPTION" .PP This function frees a datagram skbuff that was received by skb_recv_datagram\&. The flags argument must match the one used for skb_recv_datagram\&. .PP If the MSG_PEEK flag is set, and the packet is still on the receive queue of the socket, it will be taken off the queue before it is freed\&. .PP This function currently only disables BH when acquiring the sk_receive_queue lock\&. Therefore it must not be used in a context where that lock is acquired in an IRQ context\&. .PP It returns 0 if the packet was removed by us\&. .SH "COPYRIGHT" .br