|
FreeBSD kernel kern code
|
#include <sys/cdefs.h>#include "opt_param.h"#include <sys/param.h>#include <sys/systm.h>#include <sys/domain.h>#include <sys/kernel.h>#include <sys/lock.h>#include <sys/malloc.h>#include <sys/mbuf.h>#include <sys/module.h>#include <sys/mutex.h>#include <sys/protosw.h>#include <sys/sysctl.h>#include <sys/socket.h>#include <sys/socketvar.h>#include <sys/queue.h>
Go to the source code of this file.
Macros | |
| #define | ACCEPT_FILTER_MOD |
| #define | ACCEPT_FILTER_LOCK() mtx_lock(&accept_filter_mtx) |
| #define | ACCEPT_FILTER_UNLOCK() mtx_unlock(&accept_filter_mtx) |
Functions | |
| __FBSDID ("$BSDSUniX$") | |
| MTX_SYSINIT (accept_filter,&accept_filter_mtx,"accept_filter_mtx", MTX_DEF) | |
| static | SLIST_HEAD (accept_filter) |
| int | accept_filt_del (char *name) |
| struct accept_filter * | accept_filt_get (char *name) |
| int | accept_filt_generic_mod_event (module_t mod, int event, void *data) |
| int | do_getopt_accept_filter (struct socket *so, struct sockopt *sopt) |
| int | do_setopt_accept_filter (struct socket *so, struct sockopt *sopt) |
Variables | |
| static struct mtx | accept_filter_mtx |
| #define ACCEPT_FILTER_LOCK | ( | ) | mtx_lock(&accept_filter_mtx) |
Definition at line 53 of file uipc_accf.c.
Referenced by accept_filt_get(), and SLIST_HEAD().
| #define ACCEPT_FILTER_MOD |
Definition at line 32 of file uipc_accf.c.
| #define ACCEPT_FILTER_UNLOCK | ( | ) | mtx_unlock(&accept_filter_mtx) |
Definition at line 54 of file uipc_accf.c.
Referenced by accept_filt_get(), and SLIST_HEAD().
| __FBSDID | ( | "$BSDSUniX$" | ) |
| int accept_filt_del | ( | char * | name | ) |
Definition at line 99 of file uipc_accf.c.
References accept_filt_get().
Referenced by accept_filt_generic_mod_event().


| int accept_filt_generic_mod_event | ( | module_t | mod, |
| int | event, | ||
| void * | data | ||
| ) |
Definition at line 126 of file uipc_accf.c.
References accept_filt_del(), malloc(), and unloadable.

| struct accept_filter* accept_filt_get | ( | char * | name | ) |
Definition at line 112 of file uipc_accf.c.
References ACCEPT_FILTER_LOCK, and ACCEPT_FILTER_UNLOCK.
Referenced by accept_filt_del(), and do_setopt_accept_filter().

| int do_getopt_accept_filter | ( | struct socket * | so, |
| struct sockopt * | sopt | ||
| ) |
Definition at line 166 of file uipc_accf.c.
References free(), malloc(), and sooptcopyout().
Referenced by sogetopt().


| int do_setopt_accept_filter | ( | struct socket * | so, |
| struct sockopt * | sopt | ||
| ) |
Definition at line 195 of file uipc_accf.c.
References accept_filt_get(), free(), malloc(), and sooptcopyin().
Referenced by sodealloc(), and sosetopt().


| MTX_SYSINIT | ( | accept_filter | , |
| & | accept_filter_mtx, | ||
| "accept_filter_mtx" | , | ||
| MTX_DEF | |||
| ) |
|
static |
Definition at line 56 of file uipc_accf.c.
References ACCEPT_FILTER_LOCK, ACCEPT_FILTER_UNLOCK, and free().

|
static |
Definition at line 50 of file uipc_accf.c.