\section{.cfile helpers}
\label{group__cfile}\index{.\+cfile helpers@{.\+cfile helpers}}
\subsection*{Files}
\begin{DoxyCompactItemize}
\item 
file \textbf{ cfile.\+h}
\begin{DoxyCompactList}\small\item\em Osmocom .cfile helpers header. \end{DoxyCompactList}\item 
file \textbf{ cfile.\+c}
\begin{DoxyCompactList}\small\item\em Osmocom .cfile helpers implementation. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ cfile}
\begin{DoxyCompactList}\small\item\em Structure representing a currently mapped .cfile. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ cfile} $\ast$ \textbf{ cfile\+\_\+load} (const char $\ast$filename)
\begin{DoxyCompactList}\small\item\em .cfile loader\+: mmap() the data into memory (read-\/only) \end{DoxyCompactList}\item 
void \textbf{ cfile\+\_\+release} (struct \textbf{ cfile} $\ast$cf)
\begin{DoxyCompactList}\small\item\em Release all resources associated with a mapped .cfile. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}


\subsection{Function Documentation}
\mbox{\label{group__cfile_gacb0304d89096222df64f3f9a10f22167}} 
\index{.\+cfile helpers@{.\+cfile helpers}!cfile\+\_\+load@{cfile\+\_\+load}}
\index{cfile\+\_\+load@{cfile\+\_\+load}!.\+cfile helpers@{.\+cfile helpers}}
\subsubsection{cfile\+\_\+load()}
{\footnotesize\ttfamily struct \textbf{ cfile} $\ast$ cfile\+\_\+load (\begin{DoxyParamCaption}\item[{const char $\ast$}]{filename }\end{DoxyParamCaption})}



.cfile loader\+: mmap() the data into memory (read-\/only) 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em filename} & Filename of the .cfile to map \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A structure desribing the mapped data 
\end{DoxyReturn}


References \+\_\+blen, data, and len.

\mbox{\label{group__cfile_ga7728a89f370281e5da16ff27d8657b3d}} 
\index{.\+cfile helpers@{.\+cfile helpers}!cfile\+\_\+release@{cfile\+\_\+release}}
\index{cfile\+\_\+release@{cfile\+\_\+release}!.\+cfile helpers@{.\+cfile helpers}}
\subsubsection{cfile\+\_\+release()}
{\footnotesize\ttfamily void cfile\+\_\+release (\begin{DoxyParamCaption}\item[{struct \textbf{ cfile} $\ast$}]{cf }\end{DoxyParamCaption})}



Release all resources associated with a mapped .cfile. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em cf} & Structure describing the cfile to unmap \\
\hline
\end{DoxyParams}


References \+\_\+blen, and data.

