\hypertarget{linux_8h}{\section{opal/mca/hwloc/hwloc132/hwloc/include/hwloc/linux.h File Reference}
\label{linux_8h}\index{opal/mca/hwloc/hwloc132/hwloc/include/hwloc/linux.\+h@{opal/mca/hwloc/hwloc132/hwloc/include/hwloc/linux.\+h}}
}


Macros to help interaction between hwloc and Linux.  


{\ttfamily \#include $<$hwloc.\+h$>$}\\*
{\ttfamily \#include $<$stdio.\+h$>$}\\*
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
H\+W\+L\+O\+C\+\_\+\+D\+E\+C\+L\+S\+P\+E\+C int \hyperlink{group__hwlocality__linux_gaeacad897c30dbea284948374ad4b010c}{hwloc\+\_\+linux\+\_\+parse\+\_\+cpumap\+\_\+file} (F\+I\+L\+E $\ast$file, \hyperlink{group__hwlocality__sets_ga4bbf39b68b6f568fb92739e7c0ea7801}{hwloc\+\_\+cpuset\+\_\+t} set)
\begin{DoxyCompactList}\small\item\em Convert a linux kernel cpumap file {\ttfamily file} into hwloc C\+P\+U set. \end{DoxyCompactList}\item 
H\+W\+L\+O\+C\+\_\+\+D\+E\+C\+L\+S\+P\+E\+C int \hyperlink{group__hwlocality__linux_gaaaca5d1687053b6c3326b2c165bd6530}{hwloc\+\_\+linux\+\_\+set\+\_\+tid\+\_\+cpubind} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, pid\+\_\+t tid, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} set)
\begin{DoxyCompactList}\small\item\em Bind a thread {\ttfamily tid} on cpus given in cpuset {\ttfamily set}. \end{DoxyCompactList}\item 
H\+W\+L\+O\+C\+\_\+\+D\+E\+C\+L\+S\+P\+E\+C int \hyperlink{group__hwlocality__linux_gaf36a9211a21eb930f59090eb5d460b8e}{hwloc\+\_\+linux\+\_\+get\+\_\+tid\+\_\+cpubind} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, pid\+\_\+t tid, \hyperlink{group__hwlocality__sets_ga4bbf39b68b6f568fb92739e7c0ea7801}{hwloc\+\_\+cpuset\+\_\+t} set)
\begin{DoxyCompactList}\small\item\em Get the current binding of thread {\ttfamily tid}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Macros to help interaction between hwloc and Linux. 

Applications that use hwloc on Linux may want to include this file if using some low-\/level Linux features. 