sk_unattached_filter_create
Prev | Socket Filter | Next

## Name

sk_unattached_filter_create — create an unattached filter

## Synopsis

`int sk_unattached_filter_create (` | struct sk_filter ** pfp,
| struct sock_fprog * 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.

Prev | Up | Next
sk_filter_release_rcu | Home | sk_attach_filter