libosmocore 1.11.0.26-c59d.202505072026
Osmocom core library
Loading...
Searching...
No Matches
netns.h
Go to the documentation of this file.
1
4#pragma once
5#if (!EMBEDDED)
6
7#if defined(__linux__)
8
9#include <signal.h>
10
11struct osmo_netns_switch_state {
12 sigset_t prev_sigmask;
13 int prev_nsfd;
14};
15
16int osmo_netns_open_fd(const char *name);
17int osmo_netns_switch_enter(int nsfd, struct osmo_netns_switch_state *state);
18int osmo_netns_switch_exit(struct osmo_netns_switch_state *state);
19
20
21#endif /* defined(__linux__) */
22
23#endif /* (!EMBEDDED) */
char name[32]
source file name
Definition gsmtap.h:11