\hypertarget{group__hwlocality__helper__find__cache}{\section{Cache-\/specific Finding Helpers}
\label{group__hwlocality__helper__find__cache}\index{Cache-\/specific Finding Helpers@{Cache-\/specific Finding Helpers}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static \+\_\+\+\_\+hwloc\+\_\+inline \\*
\hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__find__cache_gae744419648117cbd613a038074aa0627}{hwloc\+\_\+get\+\_\+cache\+\_\+covering\+\_\+cpuset} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} set)
\begin{DoxyCompactList}\small\item\em Get the first cache covering a cpuset {\ttfamily set}. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline \\*
\hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__find__cache_ga75e961873d4b976ab10bc4739248c96d}{hwloc\+\_\+get\+\_\+shared\+\_\+cache\+\_\+covering\+\_\+obj} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+unused, \hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} obj)
\begin{DoxyCompactList}\small\item\em Get the first cache shared between an object and somebody else. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}


\subsection{Function Documentation}
\hypertarget{group__hwlocality__helper__find__cache_gae744419648117cbd613a038074aa0627}{\index{Cache-\/specific Finding Helpers@{Cache-\/specific Finding Helpers}!hwloc\+\_\+get\+\_\+cache\+\_\+covering\+\_\+cpuset@{hwloc\+\_\+get\+\_\+cache\+\_\+covering\+\_\+cpuset}}
\index{hwloc\+\_\+get\+\_\+cache\+\_\+covering\+\_\+cpuset@{hwloc\+\_\+get\+\_\+cache\+\_\+covering\+\_\+cpuset}!Cache-\/specific Finding Helpers@{Cache-\/specific Finding Helpers}}
\subsubsection[{hwloc\+\_\+get\+\_\+cache\+\_\+covering\+\_\+cpuset}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline {\bf hwloc\+\_\+obj\+\_\+t} \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure hwloc\+\_\+get\+\_\+cache\+\_\+covering\+\_\+cpuset (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t}}]{set}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__find__cache_gae744419648117cbd613a038074aa0627}


Get the first cache covering a cpuset {\ttfamily set}. 

\begin{DoxyReturn}{Returns}
{\ttfamily N\+U\+L\+L} if no cache matches 
\end{DoxyReturn}


References hwloc\+\_\+get\+\_\+obj\+\_\+covering\+\_\+cpuset(), H\+W\+L\+O\+C\+\_\+\+O\+B\+J\+\_\+\+C\+A\+C\+H\+E, hwloc\+\_\+obj\+::parent, and hwloc\+\_\+obj\+::type.

\hypertarget{group__hwlocality__helper__find__cache_ga75e961873d4b976ab10bc4739248c96d}{\index{Cache-\/specific Finding Helpers@{Cache-\/specific Finding Helpers}!hwloc\+\_\+get\+\_\+shared\+\_\+cache\+\_\+covering\+\_\+obj@{hwloc\+\_\+get\+\_\+shared\+\_\+cache\+\_\+covering\+\_\+obj}}
\index{hwloc\+\_\+get\+\_\+shared\+\_\+cache\+\_\+covering\+\_\+obj@{hwloc\+\_\+get\+\_\+shared\+\_\+cache\+\_\+covering\+\_\+obj}!Cache-\/specific Finding Helpers@{Cache-\/specific Finding Helpers}}
\subsubsection[{hwloc\+\_\+get\+\_\+shared\+\_\+cache\+\_\+covering\+\_\+obj}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline {\bf hwloc\+\_\+obj\+\_\+t} \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure hwloc\+\_\+get\+\_\+shared\+\_\+cache\+\_\+covering\+\_\+obj (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t} topology}]{\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+unused, }
\item[{{\bf hwloc\+\_\+obj\+\_\+t}}]{obj}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__find__cache_ga75e961873d4b976ab10bc4739248c96d}


Get the first cache shared between an object and somebody else. 

\begin{DoxyReturn}{Returns}
{\ttfamily N\+U\+L\+L} if no cache matches or if an invalid object is given. 
\end{DoxyReturn}


References hwloc\+\_\+obj\+::cpuset, hwloc\+\_\+bitmap\+\_\+isequal(), H\+W\+L\+O\+C\+\_\+\+O\+B\+J\+\_\+\+C\+A\+C\+H\+E, hwloc\+\_\+obj\+::parent, and hwloc\+\_\+obj\+::type.

