'\" t .\" Title: dev_remove_pack .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "DEV_REMOVE_PACK" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "Network device support" .\" ----------------------------------------------------------------- .\" * 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" dev_remove_pack \- remove packet handler .SH "SYNOPSIS" .HP \w'void\ dev_remove_pack('u .BI "void dev_remove_pack(struct\ packet_type\ *\ " "pt" ");" .SH "ARGUMENTS" .PP \fIstruct packet_type * pt\fR .RS 4 packet type declaration .RE .SH "DESCRIPTION" .PP Remove a protocol handler that was previously added to the kernel protocol handlers by \fBdev_add_pack\fR\&. The passed &packet_type is removed from the kernel lists and can be freed or reused once this function returns\&. .PP This call sleeps to guarantee that no CPU is looking at the packet type after return\&. .SH "COPYRIGHT" .br