\hypertarget{PL_8c}{
\section{PL.c File Reference}
\label{PL_8c}\index{PL.c@{PL.c}}
}
Implements the callable interface for the PL routines.  


{\tt \#include \char`\"{}PBS/PL.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/L.ih\char`\"{}}\par
{\tt \#include \char`\"{}PBS/L\_\-protos.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/RW\_\-protos.h\char`\"{}}\par


Include dependency graph for PL.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=326pt]{PL_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{PL_8c_a0}{PL\_\-init} (\hyperlink{struct__PL__ctl}{PL\_\-ctl} $\ast$pl, \hyperlink{PL__type_8h_a0}{PL\_\-type} type, int nques)
\begin{CompactList}\small\item\em Initializes the list head of a doubly linked list to an empty list of the specified type. \item\end{CompactList}\item 
int \hyperlink{PL_8c_a1}{PL\_\-destroy} (\hyperlink{struct__PL__ctl}{PL\_\-ctl} $\ast$pl)
\begin{CompactList}\small\item\em Destroys the data structures associate with a PL. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Implements the callable interface for the PL routines. 

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


\footnotesize\begin{verbatim}
    CVS $Id: PL.c,v 1.4 2004/05/12 16:19:04 russell Exp $
\end{verbatim}\normalsize


This defines the callable interface for the Priority List routines.

\subsection{Function Documentation}
\hypertarget{PL_8c_a1}{
\index{PL.c@{PL.c}!PL_destroy@{PL\_\-destroy}}
\index{PL_destroy@{PL\_\-destroy}!PL.c@{PL.c}}
\subsubsection[PL\_\-destroy]{\setlength{\rightskip}{0pt plus 5cm}int PL\_\-destroy (\hyperlink{struct__PL__ctl}{PL\_\-ctl} $\ast$ {\em pl})}}
\label{PL_8c_a1}


Destroys the data structures associate with a PL. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pl}]Pointer to the PL to destroy.\end{description}
\end{Desc}
This routine frees any resources the PL list gathered when it was initialized. The actual resources released depends on both the platform and whether blocking and timeouts were requested. 

Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=115pt]{PL_8c_a1_cgraph}
\end{center}
\end{figure}
\hypertarget{PL_8c_a0}{
\index{PL.c@{PL.c}!PL_init@{PL\_\-init}}
\index{PL_init@{PL\_\-init}!PL.c@{PL.c}}
\subsubsection[PL\_\-init]{\setlength{\rightskip}{0pt plus 5cm}int PL\_\-init (\hyperlink{struct__PL__ctl}{PL\_\-ctl} $\ast$ {\em pl}, \hyperlink{PL__type_8h_a0}{PL\_\-type} {\em type}, int {\em nques})}}
\label{PL_8c_a0}


Initializes the list head of a doubly linked list to an empty list of the specified type. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pl}]Pointer to the Priority Ques control structure to initialize. \item[{\em type}]The type blocking/waiting, see PL\_\-type \item[{\em nques}]The number of ques to support \end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em 0,Success}]\item[{\em ENOMEM,Insufficient}]memory \item[{\em ENOTSUP,Type}]not supported. \end{description}
\end{Desc}


Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=95pt]{PL_8c_a0_cgraph}
\end{center}
\end{figure}
