Symbol: nmctx
lib/libnetmap/libnetmap.h
189
struct nmctx *ctx;
lib/libnetmap/libnetmap.h
42
struct nmctx;
lib/libnetmap/libnetmap.h
504
struct nmctx *ctx);
lib/libnetmap/libnetmap.h
526
struct nmctx *ctx);
lib/libnetmap/libnetmap.h
546
void *token, struct nmctx *ctx);
lib/libnetmap/libnetmap.h
583
struct nmctx *ctx; /* the nmctx for errors and malloc/free */
lib/libnetmap/libnetmap.h
604
int32_t nmreq_get_mem_id(const char **portname, struct nmctx *ctx);
lib/libnetmap/libnetmap.h
638
typedef void (*nmctx_error_cb)(struct nmctx *, const char *);
lib/libnetmap/libnetmap.h
639
typedef void *(*nmctx_malloc_cb)(struct nmctx *,size_t);
lib/libnetmap/libnetmap.h
640
typedef void (*nmctx_free_cb)(struct nmctx *,void *);
lib/libnetmap/libnetmap.h
641
typedef void (*nmctx_lock_cb)(struct nmctx *, int);
lib/libnetmap/libnetmap.h
654
struct nmctx *nmctx_get(void);
lib/libnetmap/libnetmap.h
661
struct nmctx *nmctx_set_default(struct nmctx *ctx);
lib/libnetmap/libnetmap.h
706
void nmctx_ferror(struct nmctx *, const char *, ...);
lib/libnetmap/libnetmap.h
708
void *nmctx_malloc(struct nmctx *, size_t);
lib/libnetmap/libnetmap.h
710
void nmctx_free(struct nmctx *, void *);
lib/libnetmap/libnetmap.h
712
void nmctx_lock(struct nmctx *);
lib/libnetmap/libnetmap.h
714
void nmctx_unlock(struct nmctx *);
lib/libnetmap/nmctx-pthreads.c
46
struct nmctx up;
lib/libnetmap/nmctx-pthreads.c
53
nmctx_pthread_lock(struct nmctx *ctx, int lock)
lib/libnetmap/nmctx-pthreads.c
67
struct nmctx *old;
lib/libnetmap/nmctx.c
117
nmctx_malloc(struct nmctx *ctx, size_t sz)
lib/libnetmap/nmctx.c
123
nmctx_free(struct nmctx *ctx, void *p)
lib/libnetmap/nmctx.c
129
nmctx_lock(struct nmctx *ctx)
lib/libnetmap/nmctx.c
136
nmctx_unlock(struct nmctx *ctx)
lib/libnetmap/nmctx.c
46
nmctx_default_error(struct nmctx *ctx, const char *errmsg)
lib/libnetmap/nmctx.c
53
nmctx_default_malloc(struct nmctx *ctx, size_t sz)
lib/libnetmap/nmctx.c
60
nmctx_default_free(struct nmctx *ctx, void *p)
lib/libnetmap/nmctx.c
66
static struct nmctx nmctx_global = {
lib/libnetmap/nmctx.c
74
static struct nmctx *nmctx_default = &nmctx_global;
lib/libnetmap/nmctx.c
76
struct nmctx *
lib/libnetmap/nmctx.c
82
struct nmctx *
lib/libnetmap/nmctx.c
83
nmctx_set_default(struct nmctx *ctx)
lib/libnetmap/nmctx.c
85
struct nmctx *old = nmctx_default;
lib/libnetmap/nmctx.c
92
nmctx_ferror(struct nmctx *ctx, const char *fmt, ...)
lib/libnetmap/nmport.c
101
struct nmctx *ctx = nmctx_get();
lib/libnetmap/nmport.c
129
struct nmctx *ctx = d->ctx;
lib/libnetmap/nmport.c
189
struct nmctx *ctx = d->ctx;
lib/libnetmap/nmport.c
269
struct nmctx *ctx = d->ctx;
lib/libnetmap/nmport.c
390
struct nmctx *ctx = p->ctx;
lib/libnetmap/nmport.c
601
struct nmctx *ctx = d->ctx;
lib/libnetmap/nmport.c
658
struct nmctx *ctx = d->ctx;
lib/libnetmap/nmport.c
745
struct nmctx *ctx = d->ctx;
lib/libnetmap/nmport.c
77
nmport_new_with_ctx(struct nmctx *ctx)
lib/libnetmap/nmport.c
834
struct nmctx *ctx;
lib/libnetmap/nmreq.c
104
nmreq_header_decode(const char **pifname, struct nmreq_header *h, struct nmctx *ctx)
lib/libnetmap/nmreq.c
201
nmreq_get_mem_id(const char **pifname, struct nmctx *ctx)
lib/libnetmap/nmreq.c
243
nmreq_register_decode(const char **pifname, struct nmreq_register *r, struct nmctx *ctx)
lib/libnetmap/nmreq.c
482
void *token, struct nmctx *ctx)
lib/libnetmap/nmreq.c
552
void *token, struct nmctx *ctx)
tests/sys/netmap/ctrl-api-test.c
170
struct nmctx *nmctx;
tests/sys/netmap/ctrl-api-test.c
1856
if (nmreq_header_decode(&ctx->ifparse, hdr, ctx->nmctx) < 0) {
tests/sys/netmap/ctrl-api-test.c
1906
if (nmreq_register_decode(&ctx->ifparse, reg, ctx->nmctx) < 0) {
tests/sys/netmap/ctrl-api-test.c
1958
nmctx_parsing_error(struct nmctx *ctx, const char *msg)
tests/sys/netmap/ctrl-api-test.c
1970
struct nmctx test_nmctx, *nmctx;
tests/sys/netmap/ctrl-api-test.c
1973
nmctx = nmctx_get();
tests/sys/netmap/ctrl-api-test.c
1974
if (nmctx == NULL) {
tests/sys/netmap/ctrl-api-test.c
1978
test_nmctx = *nmctx;
tests/sys/netmap/ctrl-api-test.c
1980
ctx->nmctx = &test_nmctx;
tests/sys/netmap/ctrl-api-test.c
1999
ctx->nmctx = NULL;