'\" t .\" Title: sk_attach_filter .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SK_ATTACH_FILTER" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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" ");" .SH "ARGUMENTS" .PP \fIfprog\fR .RS 4 the filter program .RE .PP \fIsk\fR .RS 4 the socket to use .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