'\" t .\" Title: __sk_attach_filter .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "__SK_ATTACH_FILTER" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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" __sk_attach_filter \- attach a socket filter .SH "SYNOPSIS" .HP \w'int\ __sk_attach_filter('u .BI "int __sk_attach_filter(struct\ sock_fprog\ *\ " "fprog" ", struct\ sock\ *\ " "sk" ", bool\ " "locked" ");" .SH "ARGUMENTS" .PP \fIfprog\fR .RS 4 the filter program .RE .PP \fIsk\fR .RS 4 the socket to use .RE .PP \fIlocked\fR .RS 4 \-\- undescribed \-\- .RE .SH "DESCRIPTION" .PP Attach the user\*(Aqs filter code\&. We first run some sanity checks on it to make sure it does not explode on us later\&. If an error occurs or there is insufficient memory for the filter a negative errno code is returned\&. On success the return is zero\&. .SH "COPYRIGHT" .br