\doxysection{src/core/signal.c File Reference}
\label{signal_8c}\index{src/core/signal.c@{src/core/signal.c}}


Generic signalling/notification infrastructure.  


{\ttfamily \#include \char`\"{}config.\+h\char`\"{}}\newline
{\ttfamily \#include $<$osmocom/core/signal.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/talloc.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/linuxlist.\+h$>$}\newline
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$errno.\+h$>$}\newline
\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ signal\+\_\+handler}
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static \textbf{ LLIST\+\_\+\+HEAD} (signal\+\_\+handler\+\_\+list)
\item 
void $\ast$ \textbf{ osmo\+\_\+signal\+\_\+talloc\+\_\+ctx\+\_\+init} (void $\ast$root\+\_\+ctx)
\begin{DoxyCompactList}\small\item\em Initialize a \doxyref{signal\+\_\+handler}{p.}{structsignal__handler} talloc context for \doxyref{osmo\+\_\+signal\+\_\+register\+\_\+handler}{p.}{group__signal_ga34e5e27e85ffdaa63744cf9e97468807}. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+signal\+\_\+register\+\_\+handler} (unsigned int \textbf{ subsys}, \textbf{ osmo\+\_\+signal\+\_\+cbfn} $\ast$cbfn, void $\ast$\textbf{ data})
\begin{DoxyCompactList}\small\item\em Register a new signal handler. \end{DoxyCompactList}\item 
void \textbf{ osmo\+\_\+signal\+\_\+unregister\+\_\+handler} (unsigned int \textbf{ subsys}, \textbf{ osmo\+\_\+signal\+\_\+cbfn} $\ast$cbfn, void $\ast$\textbf{ data})
\begin{DoxyCompactList}\small\item\em Unregister signal handler. \end{DoxyCompactList}\item 
void \textbf{ osmo\+\_\+signal\+\_\+dispatch} (unsigned int \textbf{ subsys}, unsigned int signal, void $\ast$signal\+\_\+data)
\begin{DoxyCompactList}\small\item\em dispatch (deliver) a new signal to all registered handlers \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
void $\ast$ \textbf{ tall\+\_\+sigh\+\_\+ctx}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Generic signalling/notification infrastructure. 

