libosmocore
1.4.1
Osmocom core library
Main Page
Modules
Data Structures
Files
File List
Globals
talloc.h
Go to the documentation of this file.
1
2
#pragma once
3
#include <
talloc.h
>
4
10
struct
osmo_talloc_contexts
{
12
void
*
global
;
19
void
*
select
;
20
};
21
22
extern
__thread
struct
osmo_talloc_contexts
*
osmo_ctx
;
23
24
/* short-hand #defines for the osmo talloc contexts (OTC) that can be used to pass
25
* to the various _c functions like msgb_alloc_c() */
26
#define OTC_GLOBAL (osmo_ctx->global)
27
#define OTC_SELECT (osmo_ctx->select)
osmo_ctx
__thread struct osmo_talloc_contexts * osmo_ctx
Definition:
context.c:29
talloc.h
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
include
osmocom
core
talloc.h
Generated by
1.8.11