FreeBSD kernel kern code
uipc_accf.c File Reference
#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>
Include dependency graph for uipc_accf.c:

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
 

Macro Definition Documentation

#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().

Function Documentation

__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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

MTX_SYSINIT ( accept_filter  ,
accept_filter_mtx,
"accept_filter_mtx"  ,
MTX_DEF   
)
static SLIST_HEAD ( accept_filter  )
static

Definition at line 56 of file uipc_accf.c.

References ACCEPT_FILTER_LOCK, ACCEPT_FILTER_UNLOCK, and free().

Here is the call graph for this function:

Variable Documentation

struct mtx accept_filter_mtx
static

Definition at line 50 of file uipc_accf.c.