\hypertarget{group__accesscontrolmemory}{}\doxysection{SVM access control memory}
\label{group__accesscontrolmemory}\index{SVM access control memory@{SVM access control memory}}


This module contains API functions to handle SVM access control memory limit.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} \mbox{\hyperlink{group__accesscontrolmemory_ga16e20ff790090af51701f894a8e8d9cf}{svm\+\_\+accesscontrol\+\_\+has\+\_\+memory}} (const void $\ast$svm, const \mbox{\hyperlink{group__api__types_gaa9ef3e93dd2aee35350fd61cc54851fa}{SVM\+\_\+\+Access\+Control}} access\+\_\+control)
\begin{DoxyCompactList}\small\item\em This function checks whether a quota for a SVM code execution contains a limit for memory. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} unsigned long int \mbox{\hyperlink{group__accesscontrolmemory_ga63be027cdbafa56d7df771ff9fca4d03}{svm\+\_\+accesscontrol\+\_\+get\+\_\+memory}} (const void $\ast$svm, const \mbox{\hyperlink{group__api__types_gaa9ef3e93dd2aee35350fd61cc54851fa}{SVM\+\_\+\+Access\+Control}} access\+\_\+control)
\begin{DoxyCompactList}\small\item\em This function retrieves the remaining memory counter from a quota for a SVM code execution. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} void \mbox{\hyperlink{group__accesscontrolmemory_gacaa1c19529629f5824f3fad2a49a2afe}{svm\+\_\+accesscontrol\+\_\+set\+\_\+memory}} (const void $\ast$svm, \mbox{\hyperlink{group__api__types_gaa9ef3e93dd2aee35350fd61cc54851fa}{SVM\+\_\+\+Access\+Control}} access\+\_\+control, const unsigned long int memory)
\begin{DoxyCompactList}\small\item\em This function changes the remaining memory counter within a quota for a SVM code execution. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This module contains API functions to handle SVM access control memory limit. 



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__accesscontrolmemory_ga63be027cdbafa56d7df771ff9fca4d03}\label{group__accesscontrolmemory_ga63be027cdbafa56d7df771ff9fca4d03}} 
\index{SVM access control memory@{SVM access control memory}!svm\_accesscontrol\_get\_memory@{svm\_accesscontrol\_get\_memory}}
\index{svm\_accesscontrol\_get\_memory@{svm\_accesscontrol\_get\_memory}!SVM access control memory@{SVM access control memory}}
\doxysubsubsection{\texorpdfstring{svm\_accesscontrol\_get\_memory()}{svm\_accesscontrol\_get\_memory()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} unsigned long int svm\+\_\+accesscontrol\+\_\+get\+\_\+memory (\begin{DoxyParamCaption}\item[{const void $\ast$}]{svm,  }\item[{const \mbox{\hyperlink{group__api__types_gaa9ef3e93dd2aee35350fd61cc54851fa}{SVM\+\_\+\+Access\+Control}}}]{access\+\_\+control }\end{DoxyParamCaption})}



This function retrieves the remaining memory counter from a quota for a SVM code execution. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em access\+\_\+control} & The access control to check.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The number of remaining memory to allocate.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
{\em FAILURE} & interruption when the access control has no memory limit.\\
\hline
\end{DoxyExceptions}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__accesscontrolmemory_ga16e20ff790090af51701f894a8e8d9cf}{svm\+\_\+accesscontrol\+\_\+has\+\_\+memory}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__accesscontrolmemory_ga16e20ff790090af51701f894a8e8d9cf}\label{group__accesscontrolmemory_ga16e20ff790090af51701f894a8e8d9cf}} 
\index{SVM access control memory@{SVM access control memory}!svm\_accesscontrol\_has\_memory@{svm\_accesscontrol\_has\_memory}}
\index{svm\_accesscontrol\_has\_memory@{svm\_accesscontrol\_has\_memory}!SVM access control memory@{SVM access control memory}}
\doxysubsubsection{\texorpdfstring{svm\_accesscontrol\_has\_memory()}{svm\_accesscontrol\_has\_memory()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} svm\+\_\+accesscontrol\+\_\+has\+\_\+memory (\begin{DoxyParamCaption}\item[{const void $\ast$}]{svm,  }\item[{const \mbox{\hyperlink{group__api__types_gaa9ef3e93dd2aee35350fd61cc54851fa}{SVM\+\_\+\+Access\+Control}}}]{access\+\_\+control }\end{DoxyParamCaption})}



This function checks whether a quota for a SVM code execution contains a limit for memory. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em access\+\_\+control} & The access control to check.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
TRUE when the access control has a memory limit, FALSE otherwise.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
\end{DoxyExceptions}
\mbox{\Hypertarget{group__accesscontrolmemory_gacaa1c19529629f5824f3fad2a49a2afe}\label{group__accesscontrolmemory_gacaa1c19529629f5824f3fad2a49a2afe}} 
\index{SVM access control memory@{SVM access control memory}!svm\_accesscontrol\_set\_memory@{svm\_accesscontrol\_set\_memory}}
\index{svm\_accesscontrol\_set\_memory@{svm\_accesscontrol\_set\_memory}!SVM access control memory@{SVM access control memory}}
\doxysubsubsection{\texorpdfstring{svm\_accesscontrol\_set\_memory()}{svm\_accesscontrol\_set\_memory()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} void svm\+\_\+accesscontrol\+\_\+set\+\_\+memory (\begin{DoxyParamCaption}\item[{const void $\ast$}]{svm,  }\item[{\mbox{\hyperlink{group__api__types_gaa9ef3e93dd2aee35350fd61cc54851fa}{SVM\+\_\+\+Access\+Control}}}]{access\+\_\+control,  }\item[{const unsigned long int}]{memory }\end{DoxyParamCaption})}



This function changes the remaining memory counter within a quota for a SVM code execution. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em access\+\_\+control} & The access control to update. \\
\hline
\mbox{\texttt{ in}}  & {\em memory} & The remaining memory to allocate.\\
\hline
\end{DoxyParams}
This function changes the number of remaining memory on the access control\+:
\begin{DoxyItemize}
\item if the access control had no limit, a limit is set to the number of remaining memory,
\item the number of remaining memory can not be increased, and the function will have no effect.
\end{DoxyItemize}


\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
\end{DoxyExceptions}
