\hypertarget{group__hwlocality__linux__libnuma__ulongs}{\section{Helpers for manipulating Linux libnuma unsigned long masks}
\label{group__hwlocality__linux__libnuma__ulongs}\index{Helpers for manipulating Linux libnuma unsigned long masks@{Helpers for manipulating Linux libnuma unsigned long masks}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static \+\_\+\+\_\+hwloc\+\_\+inline int \hyperlink{group__hwlocality__linux__libnuma__ulongs_ga018e57a42a780ce2ba2e35ef975d8888}{hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} cpuset, unsigned long $\ast$mask, unsigned long $\ast$maxnode)
\begin{DoxyCompactList}\small\item\em Convert hwloc C\+P\+U set {\ttfamily cpuset} into the array of unsigned long {\ttfamily mask}. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline int \hyperlink{group__hwlocality__linux__libnuma__ulongs_gaf213df50d229c5d17a5a56b5d8f10b74}{hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga2f5276235841ad66a79bedad16a5a10c}{hwloc\+\_\+const\+\_\+nodeset\+\_\+t} nodeset, unsigned long $\ast$mask, unsigned long $\ast$maxnode)
\begin{DoxyCompactList}\small\item\em Convert hwloc N\+U\+M\+A node set {\ttfamily nodeset} into the array of unsigned long {\ttfamily mask}. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline int \hyperlink{group__hwlocality__linux__libnuma__ulongs_gafa60816dde33d69149497bcf6c7818e0}{hwloc\+\_\+cpuset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga4bbf39b68b6f568fb92739e7c0ea7801}{hwloc\+\_\+cpuset\+\_\+t} cpuset, const unsigned long $\ast$mask, unsigned long maxnode)
\begin{DoxyCompactList}\small\item\em Convert the array of unsigned long {\ttfamily mask} into hwloc C\+P\+U set. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline int \hyperlink{group__hwlocality__linux__libnuma__ulongs_ga5b51a4a96a0c3ad9f4c0da308bbf4d8f}{hwloc\+\_\+nodeset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga37e35730fa7e775b5bb0afe893d6d508}{hwloc\+\_\+nodeset\+\_\+t} nodeset, const unsigned long $\ast$mask, unsigned long maxnode)
\begin{DoxyCompactList}\small\item\em Convert the array of unsigned long {\ttfamily mask} into hwloc N\+U\+M\+A node set. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}


\subsection{Function Documentation}
\hypertarget{group__hwlocality__linux__libnuma__ulongs_gafa60816dde33d69149497bcf6c7818e0}{\index{Helpers for manipulating Linux libnuma unsigned long masks@{Helpers for manipulating Linux libnuma unsigned long masks}!hwloc\+\_\+cpuset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs@{hwloc\+\_\+cpuset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs}}
\index{hwloc\+\_\+cpuset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs@{hwloc\+\_\+cpuset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs}!Helpers for manipulating Linux libnuma unsigned long masks@{Helpers for manipulating Linux libnuma unsigned long masks}}
\subsubsection[{hwloc\+\_\+cpuset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline int hwloc\+\_\+cpuset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+cpuset\+\_\+t}}]{cpuset, }
\item[{const unsigned long $\ast$}]{mask, }
\item[{unsigned long}]{maxnode}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__linux__libnuma__ulongs_gafa60816dde33d69149497bcf6c7818e0}


Convert the array of unsigned long {\ttfamily mask} into hwloc C\+P\+U set. 

{\ttfamily mask} is a array of unsigned long that will be read. {\ttfamily maxnode} contains the maximal node number that may be read in {\ttfamily mask}.

This function may be used after calling get\+\_\+mempolicy or any other function that takes an array of unsigned long as output parameter (and possibly a maximal node number as input parameter). 

References hwloc\+\_\+obj\+::cpuset, hwloc\+\_\+bitmap\+\_\+copy(), hwloc\+\_\+bitmap\+\_\+or(), hwloc\+\_\+bitmap\+\_\+zero(), hwloc\+\_\+get\+\_\+obj\+\_\+by\+\_\+depth(), hwloc\+\_\+get\+\_\+type\+\_\+depth(), H\+W\+L\+O\+C\+\_\+\+O\+B\+J\+\_\+\+N\+O\+D\+E, hwloc\+\_\+topology\+\_\+get\+\_\+complete\+\_\+cpuset(), and H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+U\+N\+K\+N\+O\+W\+N.

\hypertarget{group__hwlocality__linux__libnuma__ulongs_ga018e57a42a780ce2ba2e35ef975d8888}{\index{Helpers for manipulating Linux libnuma unsigned long masks@{Helpers for manipulating Linux libnuma unsigned long masks}!hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs@{hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs}}
\index{hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs@{hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs}!Helpers for manipulating Linux libnuma unsigned long masks@{Helpers for manipulating Linux libnuma unsigned long masks}}
\subsubsection[{hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline int hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t}}]{cpuset, }
\item[{unsigned long $\ast$}]{mask, }
\item[{unsigned long $\ast$}]{maxnode}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__linux__libnuma__ulongs_ga018e57a42a780ce2ba2e35ef975d8888}


Convert hwloc C\+P\+U set {\ttfamily cpuset} into the array of unsigned long {\ttfamily mask}. 

{\ttfamily mask} is the array of unsigned long that will be filled. {\ttfamily maxnode} contains the maximal node number that may be stored in {\ttfamily mask}. {\ttfamily maxnode} will be set to the maximal node number that was found, plus one.

This function may be used before calling set\+\_\+mempolicy, mbind, migrate\+\_\+pages or any other function that takes an array of unsigned long and a maximal node number as input parameter. 

References hwloc\+\_\+bitmap\+\_\+iszero(), hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+covering\+\_\+cpuset\+\_\+by\+\_\+type(), hwloc\+\_\+get\+\_\+type\+\_\+depth(), H\+W\+L\+O\+C\+\_\+\+O\+B\+J\+\_\+\+N\+O\+D\+E, H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+U\+N\+K\+N\+O\+W\+N, and hwloc\+\_\+obj\+::os\+\_\+index.

\hypertarget{group__hwlocality__linux__libnuma__ulongs_ga5b51a4a96a0c3ad9f4c0da308bbf4d8f}{\index{Helpers for manipulating Linux libnuma unsigned long masks@{Helpers for manipulating Linux libnuma unsigned long masks}!hwloc\+\_\+nodeset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs@{hwloc\+\_\+nodeset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs}}
\index{hwloc\+\_\+nodeset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs@{hwloc\+\_\+nodeset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs}!Helpers for manipulating Linux libnuma unsigned long masks@{Helpers for manipulating Linux libnuma unsigned long masks}}
\subsubsection[{hwloc\+\_\+nodeset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline int hwloc\+\_\+nodeset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+nodeset\+\_\+t}}]{nodeset, }
\item[{const unsigned long $\ast$}]{mask, }
\item[{unsigned long}]{maxnode}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__linux__libnuma__ulongs_ga5b51a4a96a0c3ad9f4c0da308bbf4d8f}


Convert the array of unsigned long {\ttfamily mask} into hwloc N\+U\+M\+A node set. 

{\ttfamily mask} is a array of unsigned long that will be read. {\ttfamily maxnode} contains the maximal node number that may be read in {\ttfamily mask}.

This function may be used after calling get\+\_\+mempolicy or any other function that takes an array of unsigned long as output parameter (and possibly a maximal node number as input parameter). 

References hwloc\+\_\+bitmap\+\_\+fill(), hwloc\+\_\+bitmap\+\_\+set(), hwloc\+\_\+bitmap\+\_\+zero(), hwloc\+\_\+get\+\_\+obj\+\_\+by\+\_\+depth(), hwloc\+\_\+get\+\_\+type\+\_\+depth(), H\+W\+L\+O\+C\+\_\+\+O\+B\+J\+\_\+\+N\+O\+D\+E, H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+U\+N\+K\+N\+O\+W\+N, and hwloc\+\_\+obj\+::os\+\_\+index.

\hypertarget{group__hwlocality__linux__libnuma__ulongs_gaf213df50d229c5d17a5a56b5d8f10b74}{\index{Helpers for manipulating Linux libnuma unsigned long masks@{Helpers for manipulating Linux libnuma unsigned long masks}!hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs@{hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs}}
\index{hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs@{hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs}!Helpers for manipulating Linux libnuma unsigned long masks@{Helpers for manipulating Linux libnuma unsigned long masks}}
\subsubsection[{hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline int hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+ulongs (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+const\+\_\+nodeset\+\_\+t}}]{nodeset, }
\item[{unsigned long $\ast$}]{mask, }
\item[{unsigned long $\ast$}]{maxnode}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__linux__libnuma__ulongs_gaf213df50d229c5d17a5a56b5d8f10b74}


Convert hwloc N\+U\+M\+A node set {\ttfamily nodeset} into the array of unsigned long {\ttfamily mask}. 

{\ttfamily mask} is the array of unsigned long that will be filled. {\ttfamily maxnode} contains the maximal node number that may be stored in {\ttfamily mask}. {\ttfamily maxnode} will be set to the maximal node number that was found, plus one.

This function may be used before calling set\+\_\+mempolicy, mbind, migrate\+\_\+pages or any other function that takes an array of unsigned long and a maximal node number as input parameter. 

References hwloc\+\_\+bitmap\+\_\+isset(), hwloc\+\_\+bitmap\+\_\+iszero(), hwloc\+\_\+get\+\_\+next\+\_\+obj\+\_\+by\+\_\+type(), hwloc\+\_\+get\+\_\+type\+\_\+depth(), H\+W\+L\+O\+C\+\_\+\+O\+B\+J\+\_\+\+N\+O\+D\+E, H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+U\+N\+K\+N\+O\+W\+N, and hwloc\+\_\+obj\+::os\+\_\+index.

