Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/netmap/netmap_kern.h
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | |||||
#define MBUF_REFCNT(m) ((m)->m_ext.ref_cnt ? *((m)->m_ext.ref_cnt) : -1) | #define MBUF_REFCNT(m) ((m)->m_ext.ref_cnt ? *((m)->m_ext.ref_cnt) : -1) | ||||
#define SET_MBUF_REFCNT(m, x) *((m)->m_ext.ref_cnt) = x | #define SET_MBUF_REFCNT(m, x) *((m)->m_ext.ref_cnt) = x | ||||
#endif | #endif | ||||
#define MBUF_QUEUED(m) 1 | #define MBUF_QUEUED(m) 1 | ||||
struct nm_selinfo { | struct nm_selinfo { | ||||
struct selinfo si; | struct selinfo si; | ||||
struct taskqueue *ntfytq; | |||||
struct task ntfytask; | |||||
struct mtx m; | struct mtx m; | ||||
char mtxname[32]; | |||||
}; | }; | ||||
struct hrtimer { | struct hrtimer { | ||||
/* Not used in FreeBSD. */ | /* Not used in FreeBSD. */ | ||||
}; | }; | ||||
#define NM_BNS_GET(b) | #define NM_BNS_GET(b) | ||||
▲ Show 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | |||||
struct netmap_adapter; | struct netmap_adapter; | ||||
struct nm_bdg_fwd; | struct nm_bdg_fwd; | ||||
struct nm_bridge; | struct nm_bridge; | ||||
struct netmap_priv_d; | struct netmap_priv_d; | ||||
struct nm_bdg_args; | struct nm_bdg_args; | ||||
/* os-specific NM_SELINFO_T initialzation/destruction functions */ | /* os-specific NM_SELINFO_T initialzation/destruction functions */ | ||||
void nm_os_selinfo_init(NM_SELINFO_T *); | int nm_os_selinfo_init(NM_SELINFO_T *, const char *name); | ||||
void nm_os_selinfo_uninit(NM_SELINFO_T *); | void nm_os_selinfo_uninit(NM_SELINFO_T *); | ||||
const char *nm_dump_buf(char *p, int len, int lim, char *dst); | const char *nm_dump_buf(char *p, int len, int lim, char *dst); | ||||
void nm_os_selwakeup(NM_SELINFO_T *si); | void nm_os_selwakeup(NM_SELINFO_T *si); | ||||
void nm_os_selrecord(NM_SELRECORD_T *sr, NM_SELINFO_T *si); | void nm_os_selrecord(NM_SELRECORD_T *sr, NM_SELINFO_T *si); | ||||
int nm_os_ifnet_init(void); | int nm_os_ifnet_init(void); | ||||
▲ Show 20 Lines • Show All 2,084 Lines • Show Last 20 Lines |