\hypertarget{group__hwlocality__linux__libnuma__bitmask}{\section{Helpers for manipulating Linux libnuma bitmask}
\label{group__hwlocality__linux__libnuma__bitmask}\index{Helpers for manipulating Linux libnuma bitmask@{Helpers for manipulating Linux libnuma bitmask}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static \+\_\+\+\_\+hwloc\+\_\+inline struct \\*
bitmask \\*
$\ast$\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+malloc \hyperlink{group__hwlocality__linux__libnuma__bitmask_ga067ec565345a346bfd9d721cff5901ae}{hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} cpuset)
\begin{DoxyCompactList}\small\item\em Convert hwloc C\+P\+U set {\ttfamily cpuset} into the returned libnuma bitmask. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline struct \\*
bitmask \\*
$\ast$\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+malloc \hyperlink{group__hwlocality__linux__libnuma__bitmask_gaa2c4cb4075422a19e07c450dc7092e69}{hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga2f5276235841ad66a79bedad16a5a10c}{hwloc\+\_\+const\+\_\+nodeset\+\_\+t} nodeset)
\begin{DoxyCompactList}\small\item\em Convert hwloc N\+U\+M\+A node set {\ttfamily nodeset} into the returned libnuma bitmask. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline int \hyperlink{group__hwlocality__linux__libnuma__bitmask_ga47747968f12c2674d2840dfbacce4940}{hwloc\+\_\+cpuset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+bitmask} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga4bbf39b68b6f568fb92739e7c0ea7801}{hwloc\+\_\+cpuset\+\_\+t} cpuset, const struct bitmask $\ast$bitmask)
\begin{DoxyCompactList}\small\item\em Convert libnuma bitmask {\ttfamily bitmask} into hwloc C\+P\+U set {\ttfamily cpuset}. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline int \hyperlink{group__hwlocality__linux__libnuma__bitmask_ga5a1d17375cc7b65cd155330008cbdb6a}{hwloc\+\_\+nodeset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+bitmask} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga37e35730fa7e775b5bb0afe893d6d508}{hwloc\+\_\+nodeset\+\_\+t} nodeset, const struct bitmask $\ast$bitmask)
\begin{DoxyCompactList}\small\item\em Convert libnuma bitmask {\ttfamily bitmask} into hwloc N\+U\+M\+A node set {\ttfamily nodeset}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}


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


Convert libnuma bitmask {\ttfamily bitmask} into hwloc C\+P\+U set {\ttfamily cpuset}. 

This function may be used after calling many numa\+\_\+ functions that use a struct bitmask as an output 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__bitmask_ga067ec565345a346bfd9d721cff5901ae}{\index{Helpers for manipulating Linux libnuma bitmask@{Helpers for manipulating Linux libnuma bitmask}!hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask@{hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask}}
\index{hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask@{hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask}!Helpers for manipulating Linux libnuma bitmask@{Helpers for manipulating Linux libnuma bitmask}}
\subsubsection[{hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline struct bitmask$\ast$ \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+malloc hwloc\+\_\+cpuset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t}}]{cpuset}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__linux__libnuma__bitmask_ga067ec565345a346bfd9d721cff5901ae}


Convert hwloc C\+P\+U set {\ttfamily cpuset} into the returned libnuma bitmask. 

The returned bitmask should later be freed with numa\+\_\+bitmask\+\_\+free.

This function may be used before calling many numa\+\_\+ functions that use a struct bitmask as an input parameter.

\begin{DoxyReturn}{Returns}
newly allocated struct bitmask. 
\end{DoxyReturn}


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, hwloc\+\_\+obj\+\_\+memory\+\_\+s\+::local\+\_\+memory, hwloc\+\_\+obj\+::memory, and hwloc\+\_\+obj\+::os\+\_\+index.

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


Convert libnuma bitmask {\ttfamily bitmask} into hwloc N\+U\+M\+A node set {\ttfamily nodeset}. 

This function may be used after calling many numa\+\_\+ functions that use a struct bitmask as an output 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__bitmask_gaa2c4cb4075422a19e07c450dc7092e69}{\index{Helpers for manipulating Linux libnuma bitmask@{Helpers for manipulating Linux libnuma bitmask}!hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask@{hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask}}
\index{hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask@{hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask}!Helpers for manipulating Linux libnuma bitmask@{Helpers for manipulating Linux libnuma bitmask}}
\subsubsection[{hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline struct bitmask$\ast$ \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+malloc hwloc\+\_\+nodeset\+\_\+to\+\_\+linux\+\_\+libnuma\+\_\+bitmask (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+const\+\_\+nodeset\+\_\+t}}]{nodeset}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__linux__libnuma__bitmask_gaa2c4cb4075422a19e07c450dc7092e69}


Convert hwloc N\+U\+M\+A node set {\ttfamily nodeset} into the returned libnuma bitmask. 

The returned bitmask should later be freed with numa\+\_\+bitmask\+\_\+free.

This function may be used before calling many numa\+\_\+ functions that use a struct bitmask as an input parameter.

\begin{DoxyReturn}{Returns}
newly allocated struct bitmask. 
\end{DoxyReturn}


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, hwloc\+\_\+obj\+\_\+memory\+\_\+s\+::local\+\_\+memory, hwloc\+\_\+obj\+::memory, and hwloc\+\_\+obj\+::os\+\_\+index.

