FreeBSD kernel netgraph code
ng_ccatm_cust.h File Reference
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/queue.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/mbuf.h>
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <netgraph/atm/ngatmbase.h>
Include dependency graph for ng_ccatm_cust.h:

Go to the source code of this file.

Macros

#define CCASSERT(E, M)   KASSERT(E, M)
 
#define CCMALLOC(S)   (malloc((S), M_NG_CCATM, M_NOWAIT))
 
#define CCZALLOC(S)   (malloc((S), M_NG_CCATM, M_NOWAIT | M_ZERO))
 
#define CCFREE(P)   do { free((P), M_NG_CCATM); } while (0)
 
#define CCGETERRNO()   (ENOMEM)
 

Functions

 MALLOC_DECLARE (M_NG_CCATM)
 

Macro Definition Documentation

◆ CCASSERT

#define CCASSERT (   E,
 
)    KASSERT(E, M)

Definition at line 48 of file ng_ccatm_cust.h.

◆ CCFREE

#define CCFREE (   P)    do { free((P), M_NG_CCATM); } while (0)

Definition at line 54 of file ng_ccatm_cust.h.

◆ CCGETERRNO

#define CCGETERRNO ( )    (ENOMEM)

Definition at line 56 of file ng_ccatm_cust.h.

◆ CCMALLOC

#define CCMALLOC (   S)    (malloc((S), M_NG_CCATM, M_NOWAIT))

Definition at line 52 of file ng_ccatm_cust.h.

◆ CCZALLOC

#define CCZALLOC (   S)    (malloc((S), M_NG_CCATM, M_NOWAIT | M_ZERO))

Definition at line 53 of file ng_ccatm_cust.h.

Function Documentation

◆ MALLOC_DECLARE()

MALLOC_DECLARE ( M_NG_CCATM  )