|
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/mbuf.h>#include <sys/kernel.h>#include <sys/lock.h>#include <sys/mutex.h>#include <sys/socketvar.h>#include <sys/systm.h>#include <net/vnet.h>#include <vm/uma.h>
Go to the source code of this file.
Macros | |
| #define | DEFAULT(foo, bar) if ((foo) == NULL) (foo) = (bar) |
Functions | |
| __FBSDID ("$BSDSUniX$") | |
| 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 *) |
| MTX_SYSINIT (domain,&dom_mtx,"domain list", MTX_DEF) | |
| static void | protosw_init (struct protosw *pr) |
| void | domain_init (void *arg) |
| void | domain_add (void *data) |
| 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) |
| void | pfctlinput2 (int cmd, struct sockaddr *sa, void *ctlparam) |
Variables | |
| static struct callout | pffast_callout |
| static struct callout | pfslow_callout |
| struct domain * | domains |
| int | domain_init_status = 0 |
| static struct mtx | dom_mtx |
| struct pr_usrreqs | nousrreqs |
| #define DEFAULT | ( | foo, | |
| bar | |||
| ) | if ((foo) == NULL) (foo) = (bar) |
Referenced by protosw_init().
| __FBSDID | ( | "$BSDSUniX$" | ) |
| void domain_add | ( | void * | data | ) |
Definition at line 213 of file uipc_domain.c.
References dom_mtx, domain_init_status, domains, and printf().

| void domain_init | ( | void * | arg | ) |
Definition at line 166 of file uipc_domain.c.
References max_datalen, max_hdr, max_linkhdr, max_protohdr, panic(), pr, and protosw_init().

|
static |
Definition at line 261 of file uipc_domain.c.
References dom_mtx, domain_init_status, pffast_callout, pffasttimo(), pfslow_callout, and pfslowtimo().

|
static |
Definition at line 244 of file uipc_domain.c.
References callout_init(), dom_mtx, domain_init_status, max_linkhdr, pffast_callout, and pfslow_callout.

| MTX_SYSINIT | ( | domain | , |
| & | dom_mtx, | ||
| "domain list" | , | ||
| MTX_DEF | |||
| ) |
| int pf_proto_register | ( | int | family, |
| struct protosw * | npr | ||
| ) |
Definition at line 320 of file uipc_domain.c.
References dom_mtx, domains, pr, and protosw_init().

| int pf_proto_unregister | ( | int | family, |
| int | protocol, | ||
| int | type | ||
| ) |
| void pfctlinput | ( | int | cmd, |
| struct sockaddr * | sa | ||
| ) |
Definition at line 458 of file uipc_domain.c.
| void pfctlinput2 | ( | int | cmd, |
| struct sockaddr * | sa, | ||
| void * | ctlparam | ||
| ) |
Definition at line 470 of file uipc_domain.c.
|
static |
Definition at line 506 of file uipc_domain.c.
References domains, hz, pffast_callout, and pr.
Referenced by domainfinalize().

| struct protosw* pffindproto | ( | int | family, |
| int | protocol, | ||
| int | type | ||
| ) |
Definition at line 291 of file uipc_domain.c.
Referenced by socreate().

| struct protosw* pffindtype | ( | int | family, |
| int | type | ||
| ) |
Definition at line 274 of file uipc_domain.c.
Referenced by socreate().

|
static |
Definition at line 493 of file uipc_domain.c.
References domains, hz, pfslow_callout, and pr.
Referenced by domainfinalize().

|
static |
Definition at line 107 of file uipc_domain.c.
References DEFAULT, pru_accept_notsupp(), pru_bind_notsupp(), pru_connect2_notsupp(), pru_connect_notsupp(), pru_control_notsupp(), pru_disconnect_notsupp(), pru_listen_notsupp(), pru_peeraddr_notsupp(), pru_rcvd_notsupp(), pru_rcvoob_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().


| 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 78 of file uipc_domain.c.
Referenced by domain_add(), domainfinalize(), domaininit(), pf_proto_register(), and pf_proto_unregister().
| int domain_init_status = 0 |
Definition at line 77 of file uipc_domain.c.
Referenced by domain_add(), domainfinalize(), and domaininit().
| struct domain* domains |
Definition at line 76 of file uipc_domain.c.
Referenced by domain_add(), mb_reclaim(), pf_proto_register(), pf_proto_unregister(), pfctlinput(), pfctlinput2(), pffasttimo(), pffindproto(), pffindtype(), pfslowtimo(), and vfs_hang_addrlist().
| struct pr_usrreqs nousrreqs |
Definition at line 85 of file uipc_domain.c.
Referenced by pf_proto_unregister().
|
static |
Definition at line 70 of file uipc_domain.c.
Referenced by domainfinalize(), domaininit(), and pffasttimo().
|
static |
Definition at line 71 of file uipc_domain.c.
Referenced by domainfinalize(), domaininit(), and pfslowtimo().