\doxysection{.cfile helpers} \label{group__cfile}\index{.cfile helpers@{.cfile helpers}} \doxysubsection*{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} \doxysubsection*{Data Structures} \begin{DoxyCompactItemize} \item struct \textbf{ cfile} \begin{DoxyCompactList}\small\item\em Structure representing a currently mapped .cfile. \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection*{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} \doxysubsection{Detailed Description} \doxysubsection{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}} \doxysubsubsection{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{\texttt{ in}} & {\em filename} & Filename of the .cfile to map \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} A structure desribing the mapped data \end{DoxyReturn} References \textbf{ \+\_\+blen}, \textbf{ data}, and \textbf{ len}. \mbox{\label{group__cfile_ga7728a89f370281e5da16ff27d8657b3d}} \index{.cfile helpers@{.cfile helpers}!cfile\_release@{cfile\_release}} \index{cfile\_release@{cfile\_release}!.cfile helpers@{.cfile helpers}} \doxysubsubsection{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{\texttt{ in}} & {\em cf} & Structure describing the cfile to unmap \\ \hline \end{DoxyParams} References \textbf{ \+\_\+blen}, and \textbf{ data}.