\doxysection{netns.\+h}
\label{netns_8h_source}\index{include/osmocom/core/netns.h@{include/osmocom/core/netns.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{4 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{5 \textcolor{preprocessor}{\#if (!EMBEDDED)}}
\DoxyCodeLine{6 }
\DoxyCodeLine{7 \textcolor{preprocessor}{\#if defined(\_\_linux\_\_)}}
\DoxyCodeLine{8 }
\DoxyCodeLine{9 \textcolor{preprocessor}{\#include <signal.h>}}
\DoxyCodeLine{10 }
\DoxyCodeLine{11 \textcolor{keyword}{struct }osmo\_netns\_switch\_state \{}
\DoxyCodeLine{12         sigset\_t prev\_sigmask;}
\DoxyCodeLine{13         \textcolor{keywordtype}{int} prev\_nsfd;}
\DoxyCodeLine{14 \};}
\DoxyCodeLine{15 }
\DoxyCodeLine{16 \textcolor{keywordtype}{int} osmo\_netns\_open\_fd(\textcolor{keyword}{const} \textcolor{keywordtype}{char} *name);}
\DoxyCodeLine{17 \textcolor{keywordtype}{int} osmo\_netns\_switch\_enter(\textcolor{keywordtype}{int} nsfd, \textcolor{keyword}{struct} osmo\_netns\_switch\_state *state);}
\DoxyCodeLine{18 \textcolor{keywordtype}{int} osmo\_netns\_switch\_exit(\textcolor{keyword}{struct} osmo\_netns\_switch\_state *state);}
\DoxyCodeLine{19 }
\DoxyCodeLine{20 }
\DoxyCodeLine{21 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* defined(\_\_linux\_\_) */}\textcolor{preprocessor}{}}
\DoxyCodeLine{22 }
\DoxyCodeLine{23 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* (!EMBEDDED) */}\textcolor{preprocessor}{}}

\end{DoxyCode}
