FreeBSD kernel kern code
|
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/protosw.h>
#include <sys/domain.h>
#include <sys/eventhandler.h>
#include <sys/epoch.h>
#include <sys/mbuf.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/rmlock.h>
#include <sys/socketvar.h>
#include <sys/systm.h>
#include <machine/atomic.h>
#include <net/vnet.h>
Go to the source code of this file.
Macros | |
#define | DEFAULT(foo, bar) if ((foo) == NULL) (foo) = (bar) |
Functions | |
__FBSDID ("$FreeBSD$") | |
static void | domaininit (void *) |
SYSINIT (domain, SI_SUB_PROTO_DOMAININIT, SI_ORDER_ANY, domaininit, NULL) | |
static void | domainfinalize (void *) |
SYSINIT (domainfin, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_FIRST, domainfinalize, NULL) | |
static void | pffasttimo (void *) |
static void | pfslowtimo (void *) |
RM_SYSINIT (pftimo_lock, &pftimo_lock, "pftimo") | |
static | LIST_HEAD (protosw) |
static void | pr_usrreqs_init (struct protosw *pr) |
void | domain_init (void *arg) |
void | domain_add (void *data) |
struct domain * | pffinddomain (int family) |
struct protosw * | pffindtype (int family, int type) |
struct protosw * | pffindproto (int family, int protocol, int type) |
int | pf_proto_register (int family, struct protosw *npr) |
int | pf_proto_unregister (int family, int protocol, int type) |
void | pfctlinput (int cmd, struct sockaddr *sa) |
Variables | |
static struct callout | pffast_callout |
static struct callout | pfslow_callout |
static struct rmlock | pftimo_lock |
#define DEFAULT | ( | foo, | |
bar | |||
) | if ((foo) == NULL) (foo) = (bar) |
__FBSDID | ( | "$FreeBSD$" | ) |
void domain_add | ( | void * | data | ) |
Definition at line 219 of file uipc_domain.c.
References data, domain, and printf().
void domain_init | ( | void * | arg | ) |
Definition at line 180 of file uipc_domain.c.
References domain, flags, max_datalen, max_hdr, max_linkhdr, max_protohdr, panic(), pftimo_lock, pr, and pr_usrreqs_init().
|
static |
Definition at line 261 of file uipc_domain.c.
References pffast_callout, pffasttimo(), pfslow_callout, and pfslowtimo().
|
static |
Definition at line 244 of file uipc_domain.c.
References callout_init(), max_linkhdr, pffast_callout, and pfslow_callout.
|
static |
Definition at line 83 of file uipc_domain.c.
int pf_proto_register | ( | int | family, |
struct protosw * | npr | ||
) |
Definition at line 331 of file uipc_domain.c.
References domain, pffinddomain(), pftimo_lock, pr, and pr_usrreqs_init().
int pf_proto_unregister | ( | int | family, |
int | protocol, | ||
int | type | ||
) |
Definition at line 401 of file uipc_domain.c.
References domain, pffinddomain(), pftimo_lock, pr, and type.
void pfctlinput | ( | int | cmd, |
struct sockaddr * | sa | ||
) |
Definition at line 469 of file uipc_domain.c.
|
static |
Definition at line 500 of file uipc_domain.c.
References hz, pffast_callout, pffasttimo(), pftimo_lock, and pr.
Referenced by domainfinalize(), and pffasttimo().
struct domain * pffinddomain | ( | int | family | ) |
Definition at line 274 of file uipc_domain.c.
References domain.
Referenced by pf_proto_register(), pf_proto_unregister(), pffindproto(), pffindtype(), and socreate().
struct protosw * pffindproto | ( | int | family, |
int | protocol, | ||
int | type | ||
) |
Definition at line 301 of file uipc_domain.c.
References domain, pffinddomain(), pr, and type.
Referenced by socreate().
struct protosw * pffindtype | ( | int | family, |
int | type | ||
) |
Definition at line 285 of file uipc_domain.c.
References domain, pffinddomain(), pr, and type.
Referenced by socreate().
|
static |
Definition at line 483 of file uipc_domain.c.
References hz, pfslow_callout, pfslowtimo(), pftimo_lock, and pr.
Referenced by domainfinalize(), and pfslowtimo().
|
static |
Definition at line 119 of file uipc_domain.c.
References DEFAULT, pr, pru_accept_notsupp(), pru_aio_queue_notsupp(), pru_bind_notsupp(), pru_bindat_notsupp(), pru_connect2_notsupp(), pru_connect_notsupp(), pru_connectat_notsupp(), pru_control_notsupp(), pru_disconnect_notsupp(), pru_listen_notsupp(), pru_peeraddr_notsupp(), pru_rcvd_notsupp(), pru_rcvoob_notsupp(), pru_ready_notsupp(), pru_sense_null(), pru_shutdown_notsupp(), pru_sockaddr_notsupp(), sopoll_generic(), soreceive_generic(), and sosend_generic().
Referenced by domain_init(), and pf_proto_register().
RM_SYSINIT | ( | pftimo_lock | , |
& | pftimo_lock, | ||
"pftimo" | |||
) |
SYSINIT | ( | domain | , |
SI_SUB_PROTO_DOMAININIT | , | ||
SI_ORDER_ANY | , | ||
domaininit | , | ||
NULL | |||
) |
SYSINIT | ( | domainfin | , |
SI_SUB_PROTO_IFATTACHDOMAIN | , | ||
SI_ORDER_FIRST | , | ||
domainfinalize | , | ||
NULL | |||
) |
|
static |
Definition at line 74 of file uipc_domain.c.
Referenced by domainfinalize(), domaininit(), and pffasttimo().
|
static |
Definition at line 75 of file uipc_domain.c.
Referenced by domainfinalize(), domaininit(), and pfslowtimo().
|
static |
Definition at line 80 of file uipc_domain.c.
Referenced by domain_init(), pf_proto_register(), pf_proto_unregister(), pffasttimo(), and pfslowtimo().