\doxysubsection{SVM access control instructions}
\hypertarget{group__accesscontrolinstructions}{}\label{group__accesscontrolinstructions}\index{SVM access control instructions@{SVM access control instructions}}


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


\doxysubsubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} \mbox{\hyperlink{group__accesscontrolinstructions_gaad53849d8539e9fb7ad4fc63c8583fce}{svm\+\_\+accesscontrol\+\_\+has\+\_\+instructions}} (const void \texorpdfstring{$\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 instructions. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} unsigned long int \mbox{\hyperlink{group__accesscontrolinstructions_gac5bf64502ff056d2692da62e15d407bb}{svm\+\_\+accesscontrol\+\_\+get\+\_\+instructions}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{group__api__types_gaa9ef3e93dd2aee35350fd61cc54851fa}{SVM\+\_\+\+Access\+Control}} access\+\_\+control)
\begin{DoxyCompactList}\small\item\em This function retrieves the remaining instructions counter from a quota for a SVM code execution. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} void \mbox{\hyperlink{group__accesscontrolinstructions_ga5ec83156b55c8370b7ed468dafba7d95}{svm\+\_\+accesscontrol\+\_\+set\+\_\+instructions}} (const void \texorpdfstring{$\ast$}{*}svm, \mbox{\hyperlink{group__api__types_gaa9ef3e93dd2aee35350fd61cc54851fa}{SVM\+\_\+\+Access\+Control}} access\+\_\+control, const unsigned long int instructions)
\begin{DoxyCompactList}\small\item\em This function changes the remaining instructions counter within a quota for a SVM code execution. \end{DoxyCompactList}\end{DoxyCompactItemize}


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



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



This function retrieves the remaining instructions 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 instructions to execute.
\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 instruction limit.\\
\hline
\end{DoxyExceptions}
\begin{DoxySeeAlso}{See also}
\doxylink{group__accesscontrolinstructions_gaad53849d8539e9fb7ad4fc63c8583fce}{svm\+\_\+accesscontrol\+\_\+has\+\_\+instructions} 
\end{DoxySeeAlso}
\Hypertarget{group__accesscontrolinstructions_gaad53849d8539e9fb7ad4fc63c8583fce}\label{group__accesscontrolinstructions_gaad53849d8539e9fb7ad4fc63c8583fce} 
\index{SVM access control instructions@{SVM access control instructions}!svm\_accesscontrol\_has\_instructions@{svm\_accesscontrol\_has\_instructions}}
\index{svm\_accesscontrol\_has\_instructions@{svm\_accesscontrol\_has\_instructions}!SVM access control instructions@{SVM access control instructions}}
\doxysubsubsubsection{\texorpdfstring{svm\_accesscontrol\_has\_instructions()}{svm\_accesscontrol\_has\_instructions()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} svm\+\_\+accesscontrol\+\_\+has\+\_\+instructions (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\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 instructions. 


\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 an instructions 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}
\Hypertarget{group__accesscontrolinstructions_ga5ec83156b55c8370b7ed468dafba7d95}\label{group__accesscontrolinstructions_ga5ec83156b55c8370b7ed468dafba7d95} 
\index{SVM access control instructions@{SVM access control instructions}!svm\_accesscontrol\_set\_instructions@{svm\_accesscontrol\_set\_instructions}}
\index{svm\_accesscontrol\_set\_instructions@{svm\_accesscontrol\_set\_instructions}!SVM access control instructions@{SVM access control instructions}}
\doxysubsubsubsection{\texorpdfstring{svm\_accesscontrol\_set\_instructions()}{svm\_accesscontrol\_set\_instructions()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} void svm\+\_\+accesscontrol\+\_\+set\+\_\+instructions (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{\mbox{\hyperlink{group__api__types_gaa9ef3e93dd2aee35350fd61cc54851fa}{SVM\+\_\+\+Access\+Control}}}]{access\+\_\+control,  }\item[{const unsigned long int}]{instructions }\end{DoxyParamCaption})}



This function changes the remaining instructions 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 instructions} & The number of remaining instructions to run.\\
\hline
\end{DoxyParams}
This function changes the number of remaining instructions on the access control\+:
\begin{DoxyItemize}
\item if the access control had no limit, a limit is set to the number of remaining instructions,
\item the number of remaining instructions 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}
