libosmocore
1.5.1
Osmocom core library
|
#include <string.h>
#include <errno.h>
#include <osmocom/core/talloc.h>
#include <osmocom/core/utils.h>
Functions | |
int | osmo_ctx_init (const char *id) |
static | __attribute__ ((constructor)) |
Variables | |
__thread struct osmo_talloc_contexts * | osmo_ctx |
talloc context handling.
(C) 2019 by Harald Welte lafor All Rights Reserverd. ge@g numon ks.o rg
SPDX-License-Identifier: GPL-2.0+
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
static |
References OSMO_ASSERT, and osmo_ctx_init().
int osmo_ctx_init | ( | const char * | id | ) |
References osmo_talloc_contexts::global, osmo_ctx, and osmo_talloc_contexts::select.
Referenced by __attribute__().
__thread struct osmo_talloc_contexts* osmo_ctx |
Referenced by _osmo_select_main(), osmo_ctx_init(), osmo_select_main(), and osmo_select_main_ctx().