Lines Matching defs:nmctx
43 struct nmctx;
173 /* the nmctx used when this nmport_d was created */
174 struct nmctx *ctx;
345 * new nmport_d uses the same nmctx as @d.
351 * and sends an error message to the nmctx error() method.
437 * @ctx: pointer to the nmctx to use (for errors)
448 struct nmctx *ctx);
453 * @ctx: pointer to the nmctx to use (for errors)
470 struct nmctx *ctx);
476 * @ctx: pointer to the nmctx to use (for errors and malloc/free)
490 void *token, struct nmctx *ctx);
527 struct nmctx *ctx; /* the nmctx for errors and malloc/free */
539 * @ctx pointer to the nmctx to use (for errors)
548 int32_t nmreq_get_mem_id(const char **portname, struct nmctx *ctx);
561 /* nmctx manipulation */
563 /* the nmctx serves a few purposes:
582 typedef void (*nmctx_error_cb)(struct nmctx *, const char *);
583 typedef void *(*nmctx_malloc_cb)(struct nmctx *,size_t);
584 typedef void (*nmctx_free_cb)(struct nmctx *,void *);
585 typedef void (*nmctx_lock_cb)(struct nmctx *, int);
587 struct nmctx {
598 struct nmctx *nmctx_get(void);
605 struct nmctx *nmctx_set_default(struct nmctx *ctx);
618 * The list head is the mem_descs filed in the nmctx
634 /* dummy assignment to link-in the nmctx-pthread.o object. The proper
644 * called by the constructor in nmctx-pthread.o to initialize a lock and install
650 void nmctx_ferror(struct nmctx *, const char *, ...);
652 void *nmctx_malloc(struct nmctx *, size_t);
654 void nmctx_free(struct nmctx *, void *);
656 void nmctx_lock(struct nmctx *);
658 void nmctx_unlock(struct nmctx *);