Loading...
Searching...
No Matches
talloc.h
Go to the documentation of this file.
#pragma once
#include <talloc.h>
struct osmo_talloc_contexts {
void *global;
void *select;
};
extern __thread struct osmo_talloc_contexts *osmo_ctx;
/* short-hand #defines for the osmo talloc contexts (OTC) that can be used to pass
* to the various _c functions like msgb_alloc_c() */
#define OTC_GLOBAL (osmo_ctx->global)
#define OTC_SELECT (osmo_ctx->select)
int osmo_ctx_init(const char *id);
osmo_talloc_contexts
per-thread talloc contexts.
Definition talloc.h:10
osmo_talloc_contexts::global
void * global
global per-thread talloc context.
Definition talloc.h:12
osmo_talloc_contexts::select
void * select
volatile select-dispatch context.
Definition talloc.h:19
talloc.h
osmo_ctx_init
int osmo_ctx_init(const char *id)
Definition context.c:26
osmo_ctx
__thread struct osmo_talloc_contexts * osmo_ctx
Definition context.c:24