\hypertarget{INT_8ih}{
\section{INT.ih File Reference}
\label{INT_8ih}\index{INT.ih@{INT.ih}}
}
Defines the inline interrupt locking routines.  


{\tt \#include \char`\"{}PBI/Inline.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/impl/INT.ih.xx-xxx-xxx\char`\"{}}\par


Include dependency graph for INT.ih:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=136pt]{INT_8ih__incl}
\end{center}
\end{figure}


This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=38pt]{INT_8ih__dep__incl}
\end{center}
\end{figure}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\hypertarget{INT_8ih_a0}{
\#define \hyperlink{INT_8ih_a0}{INT\_\-\_\-EXP\_\-PROTO}\ static inline}
\label{INT_8ih_a0}

\begin{CompactList}\small\item\em Export Prototype spec. \item\end{CompactList}\item 
\hypertarget{INT_8ih_a1}{
\#define \hyperlink{INT_8ih_a1}{INT\_\-\_\-LCL\_\-PROTO}\ INLINE\_\-USR\_\-LCL\_\-PROTO}
\label{INT_8ih_a1}

\begin{CompactList}\small\item\em Internal Prototype spec. \item\end{CompactList}\item 
\hypertarget{INT_8ih_a2}{
\#define \hyperlink{INT_8ih_a2}{INT\_\-\_\-EXP\_\-FNC}\ INLINE\_\-USR\_\-EXP\_\-FNC}
\label{INT_8ih_a2}

\begin{CompactList}\small\item\em Export Function declaration. \item\end{CompactList}\item 
\hypertarget{INT_8ih_a3}{
\#define \hyperlink{INT_8ih_a3}{INT\_\-\_\-LCL\_\-FNC}\ INLINE\_\-USR\_\-LCL\_\-FNC}
\label{INT_8ih_a3}

\begin{CompactList}\small\item\em Internal Function declaration. \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
INT\_\-\_\-EXP\_\-PROTO int \hyperlink{INT_8ih_a4}{INT\_\-\_\-context} (void)
\begin{CompactList}\small\item\em Return non-zero if a interrupt level. \item\end{CompactList}\item 
INT\_\-\_\-EXP\_\-PROTO int \hyperlink{INT_8ih_a5}{INT\_\-\_\-lock} (void)
\begin{CompactList}\small\item\em Locks interrupts. \item\end{CompactList}\item 
INT\_\-\_\-EXP\_\-PROTO void \hyperlink{INT_8ih_a6}{INT\_\-\_\-unlock} (int key)
\begin{CompactList}\small\item\em Unlocks the interrrupts. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Defines the inline interrupt locking routines. 

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


\footnotesize\begin{verbatim}

    CVS $Id: INT.ih,v 1.5 2005/10/01 01:00:11 russell Exp $
\end{verbatim}\normalsize


These routines are just the inline versions of the Vx\-Works int\-Lock and int\-Unlock routines. These services can really only be provided on PPC. The implementation is dependent on the GNU compiler.

\subsection{Function Documentation}
\hypertarget{INT_8ih_a4}{
\index{INT.ih@{INT.ih}!INT__context@{INT\_\-\_\-context}}
\index{INT__context@{INT\_\-\_\-context}!INT.ih@{INT.ih}}
\subsubsection[INT\_\-\_\-context]{\setlength{\rightskip}{0pt plus 5cm}int INT\_\-\_\-context (void)}}
\label{INT_8ih_a4}


Return non-zero if a interrupt level. 

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em !=}]0, if at interrupt level \item[{\em ==}]0, if not at interrupt level ({\em i.e\/}. at task level) \end{description}
\end{Desc}
\hypertarget{INT_8ih_a5}{
\index{INT.ih@{INT.ih}!INT__lock@{INT\_\-\_\-lock}}
\index{INT__lock@{INT\_\-\_\-lock}!INT.ih@{INT.ih}}
\subsubsection[INT\_\-\_\-lock]{\setlength{\rightskip}{0pt plus 5cm}int INT\_\-\_\-lock (void)}}
\label{INT_8ih_a5}


Locks interrupts. 

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em A}]key to be passed to the INT\_\-\_\-unlock routine \end{description}
\end{Desc}
\hypertarget{INT_8ih_a6}{
\index{INT.ih@{INT.ih}!INT__unlock@{INT\_\-\_\-unlock}}
\index{INT__unlock@{INT\_\-\_\-unlock}!INT.ih@{INT.ih}}
\subsubsection[INT\_\-\_\-unlock]{\setlength{\rightskip}{0pt plus 5cm}void INT\_\-\_\-unlock (int {\em key})}}
\label{INT_8ih_a6}


Unlocks the interrrupts. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em key}]The key to unlock the interrupt. This is the return value of INT\_\-lock(). \end{description}
\end{Desc}
