\hypertarget{EHP_8c}{
\section{EHP.c File Reference}
\label{EHP_8c}\index{EHP.c@{EHP.c}}
}
Event Handler Proxy, creates a proxy task to handle event related processing that is either not appropriate or too time consuming ({\em i.e\/}. results in unacceptable latency) in the LCBD event handling task). 

{\tt \#include \char`\"{}EFC/EHP.h\char`\"{}}\par
{\tt \#include \char`\"{}CPU\_\-DB/CPU\_\-DB\_\-pubdefs.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/TASK.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/FORK.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/TOC.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/MBA.h\char`\"{}}\par
{\tt \#include $<$string.h$>$}\par


Include dependency graph for EHP.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=147pt]{EHP_8c__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{CompactItemize}
\item 
struct {\bf \_\-EHP}
\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\hypertarget{EHP_8c_a0}{
\#define {\bf NQUES}~31}
\label{EHP_8c_a0}

\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
\hypertarget{EHP_8c_a1}{
typedef \_\-EHP {\bf EHP}}
\label{EHP_8c_a1}

\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
FORK\_\-fcb $\ast$ \hyperlink{EHP_8c_a3}{EHP\_\-create} (void)
\begin{CompactList}\small\item\em Creates the Event Handler Proxy task. \item\end{CompactList}\item 
unsigned int \hyperlink{EHP_8c_a4}{EHP\_\-destroy} (void)
\begin{CompactList}\small\item\em Destroys the Event Handler Proxy task. \item\end{CompactList}\item 
FORK\_\-que $\ast$ \hyperlink{EHP_8c_a5}{EHP\_\-que\-Get} (int que\_\-id)
\begin{CompactList}\small\item\em Gets the fork que handle of the specified fork que. \item\end{CompactList}\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
\hypertarget{EHP_8c_a2}{
static EHP {\bf Ehp} = \{ NULL \}}
\label{EHP_8c_a2}

\end{CompactItemize}


\subsection{Detailed Description}
Event Handler Proxy, creates a proxy task to handle event related processing that is either not appropriate or too time consuming ({\em i.e\/}. results in unacceptable latency) in the LCBD event handling task). 

\begin{Desc}
\item[Author:]JJRussell - \href{mailto:russell@slac.stanford.edu}{\tt russell@slac.stanford.edu}\end{Desc}


\footnotesize\begin{verbatim}   CVS $Id: EHP.c,v 1.1 2007/10/10 23:40:43 russell Exp $
\end{verbatim}
\normalsize


A FORK task with 31 queues is established. Clients may request one of the que to do their work in and then que such work using the normal FORK\_\-qusr routine.

\subsection{Function Documentation}
\hypertarget{EHP_8c_a3}{
\index{EHP.c@{EHP.c}!EHP_create@{EHP\_\-create}}
\index{EHP_create@{EHP\_\-create}!EHP.c@{EHP.c}}
\subsubsection[EHP\_\-create]{\setlength{\rightskip}{0pt plus 5cm}FORK\_\-fcb $\ast$ EHP\_\-create (void)}}
\label{EHP_8c_a3}


Creates the Event Handler Proxy task. 

\begin{Desc}
\item[Returns:]The fork control block of the created task or NULL on failure\end{Desc}
\hypertarget{EHP_8c_a4}{
\index{EHP.c@{EHP.c}!EHP_destroy@{EHP\_\-destroy}}
\index{EHP_destroy@{EHP\_\-destroy}!EHP.c@{EHP.c}}
\subsubsection[EHP\_\-destroy]{\setlength{\rightskip}{0pt plus 5cm}unsigned int EHP\_\-destroy (void)}}
\label{EHP_8c_a4}


Destroys the Event Handler Proxy task. 

\begin{Desc}
\item[Returns:]The status from FORK\_\-destroy\end{Desc}
\hypertarget{EHP_8c_a5}{
\index{EHP.c@{EHP.c}!EHP_queGet@{EHP\_\-queGet}}
\index{EHP_queGet@{EHP\_\-queGet}!EHP.c@{EHP.c}}
\subsubsection[EHP\_\-queGet]{\setlength{\rightskip}{0pt plus 5cm}FORK\_\-que $\ast$ EHP\_\-que\-Get (int {\em que\_\-id})}}
\label{EHP_8c_a5}


Gets the fork que handle of the specified fork que. 

\begin{Desc}
\item[Returns:]The FORK que handle or NULL on failure\end{Desc}
This routine will create the fork task if is does not already exist.