#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/module.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/systm.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/mbuf.h>
#include <machine/stdarg.h>
#include <netnatm/unimsg.h>
#include <netgraph/atm/ngatmbase.h>
Go to the source code of this file.
|
| __FBSDID ("$FreeBSD$") |
|
static int | ngatm_handler (module_t, int, void *) |
|
| MODULE_VERSION (ngatmbase, NGATMBASE_VERSION) |
|
| DECLARE_MODULE (ngatmbase, ngatm_data, SI_SUB_EXEC, SI_ORDER_ANY) |
|
static | MALLOC_DEFINE (M_UNIMSG, "unimsg", "uni message buffers") |
|
static | MALLOC_DEFINE (M_UNIMSGHDR, "unimsghdr", "uni message headers") |
|
static void | uni_msg_init (void) |
|
int | uni_msg_extend (struct uni_msg *m, size_t s) |
|
int | uni_msg_append (struct uni_msg *m, void *buf, size_t size) |
|
struct mbuf * | uni_msg_pack_mbuf (struct uni_msg *msg, void *hdr, size_t hdrlen) |
|
static | LIST_HEAD (ngatm_msg) |
|
struct uni_msg * | uni_msg_alloc (size_t s) |
|
void | uni_msg_destroy (struct uni_msg *m) |
|
struct uni_msg * | uni_msg_build (void *ptr,...) |
|
int | uni_msg_unpack_mbuf (struct mbuf *m, struct uni_msg **pmsg) |
|
◆ EXTRA
◆ NGATMBASE_VERSION
#define NGATMBASE_VERSION 1 |
◆ __FBSDID()
◆ DECLARE_MODULE()
DECLARE_MODULE |
( |
ngatmbase |
, |
|
|
ngatm_data |
, |
|
|
SI_SUB_EXEC |
, |
|
|
SI_ORDER_ANY |
|
|
) |
| |
◆ LIST_HEAD()
◆ MALLOC_DEFINE() [1/2]
static MALLOC_DEFINE |
( |
M_UNIMSG |
, |
|
|
"unimsg" |
, |
|
|
"uni message buffers" |
|
|
) |
| |
|
static |
◆ MALLOC_DEFINE() [2/2]
static MALLOC_DEFINE |
( |
M_UNIMSGHDR |
, |
|
|
"unimsghdr" |
, |
|
|
"uni message headers" |
|
|
) |
| |
|
static |
◆ MODULE_VERSION()
◆ ngatm_handler()
static int ngatm_handler |
( |
module_t |
mod, |
|
|
int |
what, |
|
|
void * |
arg |
|
) |
| |
|
static |
◆ uni_msg_alloc()
struct uni_msg * uni_msg_alloc |
( |
size_t |
s | ) |
|
◆ uni_msg_append()
int uni_msg_append |
( |
struct uni_msg * |
m, |
|
|
void * |
buf, |
|
|
size_t |
size |
|
) |
| |
◆ uni_msg_build()
struct uni_msg * uni_msg_build |
( |
void * |
ptr, |
|
|
|
... |
|
) |
| |
◆ uni_msg_destroy()
void uni_msg_destroy |
( |
struct uni_msg * |
m | ) |
|
◆ uni_msg_extend()
int uni_msg_extend |
( |
struct uni_msg * |
m, |
|
|
size_t |
s |
|
) |
| |
◆ uni_msg_init()
static void uni_msg_init |
( |
void |
| ) |
|
|
static |
◆ uni_msg_pack_mbuf()
struct mbuf * uni_msg_pack_mbuf |
( |
struct uni_msg * |
msg, |
|
|
void * |
hdr, |
|
|
size_t |
hdrlen |
|
) |
| |
◆ uni_msg_unpack_mbuf()
int uni_msg_unpack_mbuf |
( |
struct mbuf * |
m, |
|
|
struct uni_msg ** |
pmsg |
|
) |
| |
◆ ngatm_data
Initial value:= {
"ngatmbase",
0
}
static int ngatm_handler(module_t, int, void *)
Definition at line 53 of file ngatmbase.c.
◆ ngatm_unilist_mtx
struct mtx ngatm_unilist_mtx |
|
static |