---
name: "sk_unattached_filter_create"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/sk_unattached_filter_create"
---

# sk\_unattached\_filter\_create(9)

create an unattached filter

## NAME

sk\_unattached\_filter\_create - create an unattached filter

## SYNOPSIS

**int sk\_unattached\_filter\_create(struct sk\_filter \*\*** *pfp***, struct sock\_fprog\_kern \*** *fprog***);**

## ARGUMENTS

*pfp*

the unattached filter that is created

*fprog*

the filter program

## DESCRIPTION

Create a filter independent of any socket. 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.

## COPYRIGHT
