libosmocore
1.11.0.26-c59d
Osmocom core library
Toggle main menu visibility
Main Page
Modules
Data Structures
Data Structures
Data Fields
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Variables
_
a
b
c
d
e
f
g
h
i
l
n
o
p
r
s
t
u
v
x
Typedefs
Enumerations
Enumerator
_
c
g
h
i
l
o
p
r
s
z
Macros
_
a
b
c
d
g
h
i
j
l
m
n
o
r
s
t
w
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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)
28
29
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
include
osmocom
core
talloc.h
Generated by
1.9.4