'\" t .\" Title: dev_add_pack .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DEV_ADD_PACK" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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_add_pack \- add packet handler .SH "SYNOPSIS" .HP \w'void\ dev_add_pack('u .BI "void dev_add_pack(struct\ packet_type\ *\ " "pt" ");" .SH "ARGUMENTS" .PP \fIpt\fR .RS 4 packet type declaration .RE .SH "DESCRIPTION" .PP Add a protocol handler to the networking stack\&. The passed packet_type is linked into kernel lists and may not be freed until it has been removed from the kernel lists\&. .PP This call does not sleep therefore it can not guarantee all CPU\*(Aqs that are in middle of receiving packets will see the new packet type (until the next received packet)\&. .SH "COPYRIGHT" .br