\doxysection{include/osmocom/core/write\+\_\+queue.h File Reference}
\label{write__queue_8h}\index{include/osmocom/core/write\_queue.h@{include/osmocom/core/write\_queue.h}}


Generic write queue implementation.  


{\ttfamily \#include $<$osmocom/core/select.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/msgb.\+h$>$}\newline
\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ osmo\+\_\+wqueue}
\begin{DoxyCompactList}\small\item\em write queue instance \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \textbf{ osmo\+\_\+wqueue\+\_\+init} (struct \textbf{ osmo\+\_\+wqueue} $\ast$queue, int max\+\_\+length)
\begin{DoxyCompactList}\small\item\em Initialize a \doxyref{osmo\+\_\+wqueue}{p.}{structosmo__wqueue} structure. \end{DoxyCompactList}\item 
void \textbf{ osmo\+\_\+wqueue\+\_\+clear} (struct \textbf{ osmo\+\_\+wqueue} $\ast$queue)
\begin{DoxyCompactList}\small\item\em Clear a \doxyref{osmo\+\_\+wqueue}{p.}{structosmo__wqueue}. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+wqueue\+\_\+enqueue} (struct \textbf{ osmo\+\_\+wqueue} $\ast$queue, struct \textbf{ msgb} $\ast$\textbf{ data})
\begin{DoxyCompactList}\small\item\em Enqueue a new \doxyref{Message buffers}{p.}{group__msgb} into a write queue. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+wqueue\+\_\+enqueue\+\_\+quiet} (struct \textbf{ osmo\+\_\+wqueue} $\ast$queue, struct \textbf{ msgb} $\ast$\textbf{ data})
\begin{DoxyCompactList}\small\item\em Enqueue a new \doxyref{Message buffers}{p.}{group__msgb} into a write queue (without logging full queue events) \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ osmo\+\_\+wqueue\+\_\+set\+\_\+maxlen} (struct \textbf{ osmo\+\_\+wqueue} $\ast$queue, unsigned int \textbf{ len})
\begin{DoxyCompactList}\small\item\em Update write queue length \& drop excess messages. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+wqueue\+\_\+bfd\+\_\+cb} (struct \textbf{ osmo\+\_\+fd} $\ast$fd, unsigned int what)
\begin{DoxyCompactList}\small\item\em Select loop function for write queue handling. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Generic write queue implementation. 

