1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Hardware Locality (hwloc): plugins.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Hardware Locality (hwloc)
 <span id="projectnumber">1.11.5</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_5cb306d949c7931a3b6c77517393dd34.html">hwloc</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">plugins.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright © 2013-2015 Inria. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * See COPYING in top-level directory.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> */</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#ifndef HWLOC_PLUGINS_H</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#define HWLOC_PLUGINS_H</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">struct </span><a class="code" href="a00316.html">hwloc_backend</a>;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <hwloc.h></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#ifdef HWLOC_INSIDE_PLUGIN</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">/* needed for hwloc_plugin_check_namespace() */</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <ltdl.h></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="a00200.html#ga0dceb95fada01e5e4558429912053ca7"> 28</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="a00200.html#ga0dceb95fada01e5e4558429912053ca7">hwloc_disc_component_type_e</a> {</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="a00200.html#gga0dceb95fada01e5e4558429912053ca7aa09e6a39b61eda5364eada626da88ecc"> 31</a></span>  <a class="code" href="a00200.html#gga0dceb95fada01e5e4558429912053ca7aa09e6a39b61eda5364eada626da88ecc">HWLOC_DISC_COMPONENT_TYPE_CPU</a> = (1<<0),</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="a00200.html#gga0dceb95fada01e5e4558429912053ca7a7d7e7114cca4165eee72efb9b39b3d6d"> 38</a></span>  <a class="code" href="a00200.html#gga0dceb95fada01e5e4558429912053ca7a7d7e7114cca4165eee72efb9b39b3d6d">HWLOC_DISC_COMPONENT_TYPE_GLOBAL</a> = (1<<1),</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="a00200.html#gga0dceb95fada01e5e4558429912053ca7aaf4d61f8e2c7c28e88cd81bb565695b7"> 42</a></span>  <a class="code" href="a00200.html#gga0dceb95fada01e5e4558429912053ca7aaf4d61f8e2c7c28e88cd81bb565695b7">HWLOC_DISC_COMPONENT_TYPE_MISC</a> = (1<<2)</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> } <a class="code" href="a00200.html#ga5c6112c1a7497e5f481b9634059d47b1">hwloc_disc_component_type_t</a>;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="a00312.html"> 50</a></span> <span class="keyword">struct </span><a class="code" href="a00312.html">hwloc_disc_component</a> {</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="a00312.html#ad070350354cbd665803fc86fe48cdb3d"> 52</a></span>  <a class="code" href="a00200.html#ga5c6112c1a7497e5f481b9634059d47b1">hwloc_disc_component_type_t</a> <a class="code" href="a00312.html#ad070350354cbd665803fc86fe48cdb3d">type</a>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="a00312.html#a4064c3b5d9213027e87caebef380a840"> 57</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a00312.html#a4064c3b5d9213027e87caebef380a840">name</a>;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="a00312.html#a34144f4d59bf46524e4875194652412b"> 67</a></span>  <span class="keywordtype">unsigned</span> <a class="code" href="a00312.html#a34144f4d59bf46524e4875194652412b">excludes</a>;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="a00312.html#ab8390b4bc16e44d5dfcbc35f38065eb7"> 72</a></span>  <span class="keyword">struct </span><a class="code" href="a00316.html">hwloc_backend</a> * (*instantiate)(<span class="keyword">struct </span><a class="code" href="a00312.html">hwloc_disc_component</a> *component, <span class="keyword">const</span> <span class="keywordtype">void</span> *data1, <span class="keyword">const</span> <span class="keywordtype">void</span> *data2, <span class="keyword">const</span> <span class="keywordtype">void</span> *data3);</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="a00312.html#ae86d283c272c5ae24073a235efbf6b59"> 86</a></span>  <span class="keywordtype">unsigned</span> <a class="code" href="a00312.html#ae86d283c272c5ae24073a235efbf6b59">priority</a>;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keyword">struct </span><a class="code" href="a00312.html">hwloc_disc_component</a> * next;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> };</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="a00316.html"> 114</a></span> <span class="keyword">struct </span><a class="code" href="a00316.html">hwloc_backend</a> {</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">struct </span><a class="code" href="a00312.html">hwloc_disc_component</a> * component;</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keyword">struct </span>hwloc_topology * topology;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordtype">int</span> envvar_forced;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keyword">struct </span><a class="code" href="a00316.html">hwloc_backend</a> * next;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="a00316.html#aaa8eafe495aadd81c2e3c4ec527c10ba"> 125</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a00316.html#aaa8eafe495aadd81c2e3c4ec527c10ba">flags</a>;</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="a00316.html#a5209e6508c110dcd4c3c296466f07cb3"> 130</a></span>  <span class="keywordtype">int</span> <a class="code" href="a00316.html#a5209e6508c110dcd4c3c296466f07cb3">is_custom</a>;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="a00316.html#ab8806f6db077f1bb2e9d63ec99223f7a"> 135</a></span>  <span class="keywordtype">int</span> <a class="code" href="a00316.html#ab8806f6db077f1bb2e9d63ec99223f7a">is_thissystem</a>;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="a00316.html#a2ea5bd36b7f06efdb65b98b32af16c68"> 138</a></span>  <span class="keywordtype">void</span> * <a class="code" href="a00316.html#a2ea5bd36b7f06efdb65b98b32af16c68">private_data</a>;</div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="a00316.html#a36c4fa86350525b46340c67b802c69c7"> 142</a></span>  void (*<a class="code" href="a00316.html#a36c4fa86350525b46340c67b802c69c7">disable</a>)(<span class="keyword">struct </span><a class="code" href="a00316.html">hwloc_backend</a> *backend);</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="a00316.html#aeb9e1dcf68853a65355082b359a3a2d7"> 147</a></span>  int (*<a class="code" href="a00316.html#aeb9e1dcf68853a65355082b359a3a2d7">discover</a>)(<span class="keyword">struct </span><a class="code" href="a00316.html">hwloc_backend</a> *backend);</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="a00316.html#ab3d1836eeda1970a4c51342df186581e"> 151</a></span>  int (*<a class="code" href="a00316.html#ab3d1836eeda1970a4c51342df186581e">get_obj_cpuset</a>)(<span class="keyword">struct </span><a class="code" href="a00316.html">hwloc_backend</a> *backend, <span class="keyword">struct </span><a class="code" href="a00316.html">hwloc_backend</a> *caller, <span class="keyword">struct </span><a class="code" href="a00216.html">hwloc_obj</a> *obj, <a class="code" href="a00186.html#gaa3c2bf4c776d603dcebbb61b0c923d84">hwloc_bitmap_t</a> <a class="code" href="a00216.html#a67925e0f2c47f50408fbdb9bddd0790f">cpuset</a>);</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="a00316.html#a5a4803e23309be318d7cdb641a5f1037"> 156</a></span>  int (*notify_new_object)(<span class="keyword">struct </span><a class="code" href="a00316.html">hwloc_backend</a> *backend, <span class="keyword">struct </span><a class="code" href="a00316.html">hwloc_backend</a> *caller, <span class="keyword">struct </span><a class="code" href="a00216.html">hwloc_obj</a> *obj);</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> };</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="a00201.html#ga21513209613570877b6bfa9898106f2a"> 160</a></span> <span class="keyword">enum</span> <a class="code" href="a00201.html#ga21513209613570877b6bfa9898106f2a">hwloc_backend_flag_e</a> {</div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="a00201.html#gga21513209613570877b6bfa9898106f2aadc96f2cf3bdd5d41e102dfa1e1976b24"> 163</a></span>  <a class="code" href="a00201.html#gga21513209613570877b6bfa9898106f2aadc96f2cf3bdd5d41e102dfa1e1976b24">HWLOC_BACKEND_FLAG_NEED_LEVELS</a> = (1UL<<0)</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> };</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> HWLOC_DECLSPEC <span class="keyword">struct </span><a class="code" href="a00316.html">hwloc_backend</a> * <a class="code" href="a00201.html#ga330a0b581de4817d0cf1e7401db22436">hwloc_backend_alloc</a>(<span class="keyword">struct</span> <a class="code" href="a00312.html">hwloc_disc_component</a> *component);</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> HWLOC_DECLSPEC <span class="keywordtype">int</span> <a class="code" href="a00201.html#gaa4edf46c5d88eef53b3b8f572d88b9c5">hwloc_backend_enable</a>(<span class="keyword">struct</span> hwloc_topology *topology, <span class="keyword">struct</span> <a class="code" href="a00316.html">hwloc_backend</a> *backend);</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> HWLOC_DECLSPEC <span class="keywordtype">int</span> <a class="code" href="a00201.html#ga505a5470745bf0b601f4d25a69601411">hwloc_backends_get_obj_cpuset</a>(<span class="keyword">struct</span> <a class="code" href="a00316.html">hwloc_backend</a> *caller, <span class="keyword">struct</span> <a class="code" href="a00216.html">hwloc_obj</a> *obj, <a class="code" href="a00186.html#gaa3c2bf4c776d603dcebbb61b0c923d84">hwloc_bitmap_t</a> cpuset);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> HWLOC_DECLSPEC <span class="keywordtype">int</span> <a class="code" href="a00201.html#gad8ac8bba9ab6b9af423baba0c8337c6b">hwloc_backends_notify_new_object</a>(<span class="keyword">struct</span> <a class="code" href="a00316.html">hwloc_backend</a> *caller, <span class="keyword">struct</span> <a class="code" href="a00216.html">hwloc_obj</a> *obj);</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div><div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="a00202.html#ga397a1bf7d21dd073320ad0045340f463"> 202</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="a00202.html#ga397a1bf7d21dd073320ad0045340f463">hwloc_component_type_e</a> {</div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="a00202.html#gga397a1bf7d21dd073320ad0045340f463a5d6e561f467fe9795a29e7368b613900"> 204</a></span>  <a class="code" href="a00202.html#gga397a1bf7d21dd073320ad0045340f463a5d6e561f467fe9795a29e7368b613900">HWLOC_COMPONENT_TYPE_DISC</a>,</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="a00202.html#gga397a1bf7d21dd073320ad0045340f463adea00cd839c2141c032e1569fd5592bd"> 207</a></span>  <a class="code" href="a00202.html#gga397a1bf7d21dd073320ad0045340f463adea00cd839c2141c032e1569fd5592bd">HWLOC_COMPONENT_TYPE_XML</a></div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> } <a class="code" href="a00202.html#ga0aebfa65317af10bb18d7d35f6dc05b8">hwloc_component_type_t</a>;</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> </div><div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="a00320.html"> 215</a></span> <span class="keyword">struct </span><a class="code" href="a00320.html">hwloc_component</a> {</div><div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="a00320.html#a3250bd6fc9713946991d805e48091b2e"> 217</a></span>  <span class="keywordtype">unsigned</span> <a class="code" href="a00320.html#a3250bd6fc9713946991d805e48091b2e">abi</a>;</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div><div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="a00320.html#aea613546886d9b8221cadba920fe3ebc"> 236</a></span>  int (*init)(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> flags);</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div><div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="a00320.html#a4612015451a1c706e8ba19114cb8baae"> 249</a></span>  void (*finalize)(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> flags);</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div><div class="line"><a name="l00252"></a><span class="lineno"><a class="line" href="a00320.html#a789208ada7e17492cfd3a5a88a6bb0ee"> 252</a></span>  hwloc_component_type_t <a class="code" href="a00320.html#a789208ada7e17492cfd3a5a88a6bb0ee">type</a>;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span> </div><div class="line"><a name="l00255"></a><span class="lineno"><a class="line" href="a00320.html#ab8043c5b4cc0e81aabba586ccb194335"> 255</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a00320.html#ab8043c5b4cc0e81aabba586ccb194335">flags</a>;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> </div><div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="a00320.html#a4b8cffd1d943c29fdc102b841b8598d4"> 258</a></span>  <span class="keywordtype">void</span> * <a class="code" href="a00320.html#a4b8cffd1d943c29fdc102b841b8598d4">data</a>;</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> };</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> </div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> HWLOC_DECLSPEC <span class="keyword">struct </span><a class="code" href="a00216.html">hwloc_obj</a> *<a class="code" href="a00203.html#gafd853fd67e12c32916201d8303ef39d2">hwloc_insert_object_by_cpuset</a>(<span class="keyword">struct</span> hwloc_topology *topology, <a class="code" href="a00216.html">hwloc_obj_t</a> obj);</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span> </div><div class="line"><a name="l00293"></a><span class="lineno"><a class="line" href="a00203.html#ga1ac8191022b0d3b1bf0070e11d1f1155"> 293</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="a00203.html#ga1ac8191022b0d3b1bf0070e11d1f1155">hwloc_report_error_t</a>)(<span class="keyword">const</span> <span class="keywordtype">char</span> * msg, <span class="keywordtype">int</span> line);</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span> HWLOC_DECLSPEC <span class="keywordtype">void</span> <a class="code" href="a00203.html#ga3ae154590328522a864f4a7fb453b562">hwloc_report_os_error</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * msg, <span class="keywordtype">int</span> line);</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span> HWLOC_DECLSPEC <span class="keywordtype">int</span> <a class="code" href="a00203.html#gab527c1e0f243f057d31a724794ad9f88">hwloc_hide_errors</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span> </div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span> HWLOC_DECLSPEC <span class="keyword">struct </span><a class="code" href="a00216.html">hwloc_obj</a> *<a class="code" href="a00203.html#ga56d4e5fec377bf09f136b4e8e280e30f">hwloc__insert_object_by_cpuset</a>(<span class="keyword">struct</span> hwloc_topology *topology, <a class="code" href="a00216.html">hwloc_obj_t</a> obj, <a class="code" href="a00203.html#ga1ac8191022b0d3b1bf0070e11d1f1155">hwloc_report_error_t</a> report_error);</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span> </div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span> HWLOC_DECLSPEC <span class="keywordtype">void</span> <a class="code" href="a00203.html#ga0ef97debde503b56367689b07bb3e901">hwloc_insert_object_by_parent</a>(<span class="keyword">struct</span> hwloc_topology *topology, <a class="code" href="a00216.html">hwloc_obj_t</a> <a class="code" href="a00216.html#adc494f6aed939992be1c55cca5822900">parent</a>, <a class="code" href="a00216.html">hwloc_obj_t</a> obj);</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span> <span class="keyword">static</span> __hwloc_inline <span class="keyword">struct </span><a class="code" href="a00216.html">hwloc_obj</a> *</div><div class="line"><a name="l00323"></a><span class="lineno"><a class="line" href="a00203.html#ga64d210fcfd7e517095319420bf40ed0a"> 323</a></span> <a class="code" href="a00203.html#ga64d210fcfd7e517095319420bf40ed0a">hwloc_alloc_setup_object</a>(<a class="code" href="a00163.html#gacd37bb612667dc437d66bfb175a8dc55">hwloc_obj_type_t</a> <a class="code" href="a00312.html#ad070350354cbd665803fc86fe48cdb3d">type</a>, <span class="keywordtype">signed</span> <a class="code" href="a00216.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>)</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span> {</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <span class="keyword">struct </span><a class="code" href="a00216.html">hwloc_obj</a> *obj = malloc(<span class="keyword">sizeof</span>(*obj));</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  memset(obj, 0, <span class="keyword">sizeof</span>(*obj));</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  obj-><a class="code" href="a00216.html#acc4f0803f244867e68fe0036800be5de">type</a> = <a class="code" href="a00312.html#ad070350354cbd665803fc86fe48cdb3d">type</a>;</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  obj-><a class="code" href="a00216.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a> = <a class="code" href="a00216.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>;</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  obj-><a class="code" href="a00216.html#a68766f0b1c4d61b5bad87e3b81dacfde">os_level</a> = -1;</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  obj-><a class="code" href="a00216.html#accd40e29f71f19e88db62ea3df02adc8">attr</a> = malloc(<span class="keyword">sizeof</span>(*obj-><a class="code" href="a00216.html#accd40e29f71f19e88db62ea3df02adc8">attr</a>));</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  memset(obj-><a class="code" href="a00216.html#accd40e29f71f19e88db62ea3df02adc8">attr</a>, 0, <span class="keyword">sizeof</span>(*obj-><a class="code" href="a00216.html#accd40e29f71f19e88db62ea3df02adc8">attr</a>));</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="comment">/* do not allocate the cpuset here, let the caller do it */</span></div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordflow">return</span> obj;</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span> }</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span> </div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span> HWLOC_DECLSPEC <span class="keywordtype">int</span> <a class="code" href="a00203.html#gabb240e5b856a34963078ccec9a785ac1">hwloc_fill_object_sets</a>(<a class="code" href="a00216.html">hwloc_obj_t</a> obj);</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span> </div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span> <span class="keyword">static</span> __hwloc_inline <span class="keywordtype">int</span></div><div class="line"><a name="l00366"></a><span class="lineno"><a class="line" href="a00203.html#gac2eaed287bb215cf0bd33014e9e1d374"> 366</a></span> <a class="code" href="a00203.html#gac2eaed287bb215cf0bd33014e9e1d374">hwloc_plugin_check_namespace</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *pluginname __hwloc_attribute_unused, <span class="keyword">const</span> <span class="keywordtype">char</span> *symbol __hwloc_attribute_unused)</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span> {</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span> <span class="preprocessor">#ifdef HWLOC_INSIDE_PLUGIN</span></div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  lt_dlhandle handle;</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="keywordtype">void</span> *sym;</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  handle = lt_dlopen(NULL);</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <span class="keywordflow">if</span> (!handle)</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="comment">/* cannot check, assume things will work */</span></div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  sym = lt_dlsym(handle, symbol);</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  lt_dlclose(handle);</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="keywordflow">if</span> (!sym) {</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  <span class="keyword">static</span> <span class="keywordtype">int</span> verboseenv_checked = 0;</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  <span class="keyword">static</span> <span class="keywordtype">int</span> verboseenv_value = 0;</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keywordflow">if</span> (!verboseenv_checked) {</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *verboseenv = getenv(<span class="stringliteral">"HWLOC_PLUGINS_VERBOSE"</span>);</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  verboseenv_value = verboseenv ? atoi(verboseenv) : 0;</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  verboseenv_checked = 1;</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  }</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  <span class="keywordflow">if</span> (verboseenv_value)</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  fprintf(stderr, <span class="stringliteral">"Plugin `%s' disabling itself because it cannot find the `%s' core symbol.\n"</span>,</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  pluginname, symbol);</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <span class="keywordflow">return</span> -1;</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  }</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span> <span class="preprocessor">#endif </span><span class="comment">/* HWLOC_INSIDE_PLUGIN */</span><span class="preprocessor"></span></div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span> }</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span> </div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span> HWLOC_DECLSPEC <span class="keywordtype">int</span> <a class="code" href="a00204.html#ga2ea3e9c02eabd8c5768745c8a99d7fed">hwloc_insert_pci_device_list</a>(<span class="keyword">struct</span> <a class="code" href="a00316.html">hwloc_backend</a> *backend, <span class="keyword">struct</span> <a class="code" href="a00216.html">hwloc_obj</a> *first_obj);</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span> </div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span> HWLOC_DECLSPEC <span class="keywordtype">unsigned</span> <a class="code" href="a00204.html#ga4bed8bd79337d4bc84b884a6ccd14f16">hwloc_pci_find_cap</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *config, <span class="keywordtype">unsigned</span> cap);</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span> </div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span> HWLOC_DECLSPEC <span class="keywordtype">int</span> <a class="code" href="a00204.html#ga749e75eeea108be0608fcba7c113f736">hwloc_pci_find_linkspeed</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *config, <span class="keywordtype">unsigned</span> offset, <span class="keywordtype">float</span> *linkspeed);</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span> </div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span> HWLOC_DECLSPEC <span class="keywordtype">int</span> <a class="code" href="a00204.html#ga80fa1e3d882b5c2225dd6dd01e098ad0">hwloc_pci_prepare_bridge</a>(<a class="code" href="a00216.html">hwloc_obj_t</a> obj, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *config);</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span> </div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span> <span class="preprocessor">#endif </span><span class="comment">/* HWLOC_PLUGINS_H */</span><span class="preprocessor"></span></div><div class="ttc" id="a00203_html_ga3ae154590328522a864f4a7fb453b562"><div class="ttname"><a href="a00203.html#ga3ae154590328522a864f4a7fb453b562">hwloc_report_os_error</a></div><div class="ttdeci">void hwloc_report_os_error(const char *msg, int line)</div><div class="ttdoc">Report an insertion error from a backend. </div></div>
<div class="ttc" id="a00203_html_gab527c1e0f243f057d31a724794ad9f88"><div class="ttname"><a href="a00203.html#gab527c1e0f243f057d31a724794ad9f88">hwloc_hide_errors</a></div><div class="ttdeci">int hwloc_hide_errors(void)</div><div class="ttdoc">Check whether insertion errors are hidden. </div></div>
<div class="ttc" id="a00316_html_aeb9e1dcf68853a65355082b359a3a2d7"><div class="ttname"><a href="a00316.html#aeb9e1dcf68853a65355082b359a3a2d7">hwloc_backend::discover</a></div><div class="ttdeci">int(* discover)(struct hwloc_backend *backend)</div><div class="ttdoc">Main discovery callback. returns > 0 if it modified the topology tree, -1 on error, 0 otherwise. May be NULL if type is HWLOC_DISC_COMPONENT_TYPE_MISC. </div><div class="ttdef"><b>Definition:</b> plugins.h:147</div></div>
<div class="ttc" id="a00201_html_gga21513209613570877b6bfa9898106f2aadc96f2cf3bdd5d41e102dfa1e1976b24"><div class="ttname"><a href="a00201.html#gga21513209613570877b6bfa9898106f2aadc96f2cf3bdd5d41e102dfa1e1976b24">HWLOC_BACKEND_FLAG_NEED_LEVELS</a></div><div class="ttdoc">Levels should be reconnected before this backend discover() is used. </div><div class="ttdef"><b>Definition:</b> plugins.h:163</div></div>
<div class="ttc" id="a00163_html_gacd37bb612667dc437d66bfb175a8dc55"><div class="ttname"><a href="a00163.html#gacd37bb612667dc437d66bfb175a8dc55">hwloc_obj_type_t</a></div><div class="ttdeci">hwloc_obj_type_t</div><div class="ttdoc">Type of topology object. </div><div class="ttdef"><b>Definition:</b> hwloc.h:163</div></div>
<div class="ttc" id="a00316_html_a5209e6508c110dcd4c3c296466f07cb3"><div class="ttname"><a href="a00316.html#a5209e6508c110dcd4c3c296466f07cb3">hwloc_backend::is_custom</a></div><div class="ttdeci">int is_custom</div><div class="ttdoc">Backend-specific &#39;is_custom&#39; property. Shortcut on !strcmp(..->component->name, "custom"). Only the custom component should touch this. </div><div class="ttdef"><b>Definition:</b> plugins.h:130</div></div>
<div class="ttc" id="a00204_html_ga4bed8bd79337d4bc84b884a6ccd14f16"><div class="ttname"><a href="a00204.html#ga4bed8bd79337d4bc84b884a6ccd14f16">hwloc_pci_find_cap</a></div><div class="ttdeci">unsigned hwloc_pci_find_cap(const unsigned char *config, unsigned cap)</div><div class="ttdoc">Return the offset of the given capability in the PCI config space buffer. </div></div>
<div class="ttc" id="a00204_html_ga749e75eeea108be0608fcba7c113f736"><div class="ttname"><a href="a00204.html#ga749e75eeea108be0608fcba7c113f736">hwloc_pci_find_linkspeed</a></div><div class="ttdeci">int hwloc_pci_find_linkspeed(const unsigned char *config, unsigned offset, float *linkspeed)</div><div class="ttdoc">Fill linkspeed by reading the PCI config space where PCI_CAP_ID_EXP is at position offset...</div></div>
<div class="ttc" id="a00312_html_ad070350354cbd665803fc86fe48cdb3d"><div class="ttname"><a href="a00312.html#ad070350354cbd665803fc86fe48cdb3d">hwloc_disc_component::type</a></div><div class="ttdeci">hwloc_disc_component_type_t type</div><div class="ttdoc">Discovery component type. </div><div class="ttdef"><b>Definition:</b> plugins.h:52</div></div>
<div class="ttc" id="a00316_html_a36c4fa86350525b46340c67b802c69c7"><div class="ttname"><a href="a00316.html#a36c4fa86350525b46340c67b802c69c7">hwloc_backend::disable</a></div><div class="ttdeci">void(* disable)(struct hwloc_backend *backend)</div><div class="ttdoc">Callback for freeing the private_data. May be NULL. </div><div class="ttdef"><b>Definition:</b> plugins.h:142</div></div>
<div class="ttc" id="a00320_html_a4b8cffd1d943c29fdc102b841b8598d4"><div class="ttname"><a href="a00320.html#a4b8cffd1d943c29fdc102b841b8598d4">hwloc_component::data</a></div><div class="ttdeci">void * data</div><div class="ttdoc">Component data, pointing to a struct hwloc_disc_component or struct hwloc_xml_component. </div><div class="ttdef"><b>Definition:</b> plugins.h:258</div></div>
<div class="ttc" id="a00204_html_ga80fa1e3d882b5c2225dd6dd01e098ad0"><div class="ttname"><a href="a00204.html#ga80fa1e3d882b5c2225dd6dd01e098ad0">hwloc_pci_prepare_bridge</a></div><div class="ttdeci">int hwloc_pci_prepare_bridge(hwloc_obj_t obj, const unsigned char *config)</div><div class="ttdoc">Modify the PCI device object into a bridge and fill its attribute if a bridge is found in the PCI con...</div></div>
<div class="ttc" id="a00203_html_gafd853fd67e12c32916201d8303ef39d2"><div class="ttname"><a href="a00203.html#gafd853fd67e12c32916201d8303ef39d2">hwloc_insert_object_by_cpuset</a></div><div class="ttdeci">struct hwloc_obj * hwloc_insert_object_by_cpuset(struct hwloc_topology *topology, hwloc_obj_t obj)</div><div class="ttdoc">Add an object to the topology. </div></div>
<div class="ttc" id="a00200_html_gga0dceb95fada01e5e4558429912053ca7a7d7e7114cca4165eee72efb9b39b3d6d"><div class="ttname"><a href="a00200.html#gga0dceb95fada01e5e4558429912053ca7a7d7e7114cca4165eee72efb9b39b3d6d">HWLOC_DISC_COMPONENT_TYPE_GLOBAL</a></div><div class="ttdoc">xml, synthetic or custom, platform-specific components such as bgq. Anything the discovers CPU and ev...</div><div class="ttdef"><b>Definition:</b> plugins.h:38</div></div>
<div class="ttc" id="a00203_html_ga0ef97debde503b56367689b07bb3e901"><div class="ttname"><a href="a00203.html#ga0ef97debde503b56367689b07bb3e901">hwloc_insert_object_by_parent</a></div><div class="ttdeci">void hwloc_insert_object_by_parent(struct hwloc_topology *topology, hwloc_obj_t parent, hwloc_obj_t obj)</div><div class="ttdoc">Insert an object somewhere in the topology. </div></div>
<div class="ttc" id="a00316_html_aaa8eafe495aadd81c2e3c4ec527c10ba"><div class="ttname"><a href="a00316.html#aaa8eafe495aadd81c2e3c4ec527c10ba">hwloc_backend::flags</a></div><div class="ttdeci">unsigned long flags</div><div class="ttdoc">Backend flags, as an OR&#39;ed set of hwloc_backend_flag_e. </div><div class="ttdef"><b>Definition:</b> plugins.h:125</div></div>
<div class="ttc" id="a00201_html_gaa4edf46c5d88eef53b3b8f572d88b9c5"><div class="ttname"><a href="a00201.html#gaa4edf46c5d88eef53b3b8f572d88b9c5">hwloc_backend_enable</a></div><div class="ttdeci">int hwloc_backend_enable(struct hwloc_topology *topology, struct hwloc_backend *backend)</div><div class="ttdoc">Enable a previously allocated and setup backend. </div></div>
<div class="ttc" id="a00202_html_gga397a1bf7d21dd073320ad0045340f463adea00cd839c2141c032e1569fd5592bd"><div class="ttname"><a href="a00202.html#gga397a1bf7d21dd073320ad0045340f463adea00cd839c2141c032e1569fd5592bd">HWLOC_COMPONENT_TYPE_XML</a></div><div class="ttdoc">The data field must point to a struct hwloc_xml_component. </div><div class="ttdef"><b>Definition:</b> plugins.h:207</div></div>
<div class="ttc" id="a00216_html_accd40e29f71f19e88db62ea3df02adc8"><div class="ttname"><a href="a00216.html#accd40e29f71f19e88db62ea3df02adc8">hwloc_obj::attr</a></div><div class="ttdeci">union hwloc_obj_attr_u * attr</div><div class="ttdoc">Object type-specific Attributes, may be NULL if no attribute value was found. </div><div class="ttdef"><b>Definition:</b> hwloc.h:360</div></div>
<div class="ttc" id="a00202_html_ga0aebfa65317af10bb18d7d35f6dc05b8"><div class="ttname"><a href="a00202.html#ga0aebfa65317af10bb18d7d35f6dc05b8">hwloc_component_type_t</a></div><div class="ttdeci">enum hwloc_component_type_e hwloc_component_type_t</div><div class="ttdoc">Generic component type. </div></div>
<div class="ttc" id="a00201_html_ga21513209613570877b6bfa9898106f2a"><div class="ttname"><a href="a00201.html#ga21513209613570877b6bfa9898106f2a">hwloc_backend_flag_e</a></div><div class="ttdeci">hwloc_backend_flag_e</div><div class="ttdoc">Backend flags. </div><div class="ttdef"><b>Definition:</b> plugins.h:160</div></div>
<div class="ttc" id="a00203_html_ga56d4e5fec377bf09f136b4e8e280e30f"><div class="ttname"><a href="a00203.html#ga56d4e5fec377bf09f136b4e8e280e30f">hwloc__insert_object_by_cpuset</a></div><div class="ttdeci">struct hwloc_obj * hwloc__insert_object_by_cpuset(struct hwloc_topology *topology, hwloc_obj_t obj, hwloc_report_error_t report_error)</div><div class="ttdoc">Add an object to the topology and specify which error callback to use. </div></div>
<div class="ttc" id="a00203_html_gac2eaed287bb215cf0bd33014e9e1d374"><div class="ttname"><a href="a00203.html#gac2eaed287bb215cf0bd33014e9e1d374">hwloc_plugin_check_namespace</a></div><div class="ttdeci">static int hwloc_plugin_check_namespace(const char *pluginname, const char *symbol)</div><div class="ttdoc">Make sure that plugins can lookup core symbols. </div><div class="ttdef"><b>Definition:</b> plugins.h:366</div></div>
<div class="ttc" id="a00203_html_ga1ac8191022b0d3b1bf0070e11d1f1155"><div class="ttname"><a href="a00203.html#ga1ac8191022b0d3b1bf0070e11d1f1155">hwloc_report_error_t</a></div><div class="ttdeci">void(* hwloc_report_error_t)(const char *msg, int line)</div><div class="ttdoc">Type of error callbacks during object insertion. </div><div class="ttdef"><b>Definition:</b> plugins.h:293</div></div>
<div class="ttc" id="a00316_html_ab8806f6db077f1bb2e9d63ec99223f7a"><div class="ttname"><a href="a00316.html#ab8806f6db077f1bb2e9d63ec99223f7a">hwloc_backend::is_thissystem</a></div><div class="ttdeci">int is_thissystem</div><div class="ttdoc">Backend-specific &#39;is_thissystem&#39; property. Set to 0 or 1 if the backend should enforce the thissystem...</div><div class="ttdef"><b>Definition:</b> plugins.h:135</div></div>
<div class="ttc" id="a00312_html"><div class="ttname"><a href="a00312.html">hwloc_disc_component</a></div><div class="ttdoc">Discovery component structure. </div><div class="ttdef"><b>Definition:</b> plugins.h:50</div></div>
<div class="ttc" id="a00320_html_a3250bd6fc9713946991d805e48091b2e"><div class="ttname"><a href="a00320.html#a3250bd6fc9713946991d805e48091b2e">hwloc_component::abi</a></div><div class="ttdeci">unsigned abi</div><div class="ttdoc">Component ABI version, set to HWLOC_COMPONENT_ABI. </div><div class="ttdef"><b>Definition:</b> plugins.h:217</div></div>
<div class="ttc" id="a00312_html_ae86d283c272c5ae24073a235efbf6b59"><div class="ttname"><a href="a00312.html#ae86d283c272c5ae24073a235efbf6b59">hwloc_disc_component::priority</a></div><div class="ttdeci">unsigned priority</div><div class="ttdoc">Component priority. Used to sort topology->components, higher priority first. Also used to decide bet...</div><div class="ttdef"><b>Definition:</b> plugins.h:86</div></div>
<div class="ttc" id="a00312_html_a4064c3b5d9213027e87caebef380a840"><div class="ttname"><a href="a00312.html#a4064c3b5d9213027e87caebef380a840">hwloc_disc_component::name</a></div><div class="ttdeci">const char * name</div><div class="ttdoc">Name. If this component is built as a plugin, this name does not have to match the plugin filename...</div><div class="ttdef"><b>Definition:</b> plugins.h:57</div></div>
<div class="ttc" id="a00204_html_ga2ea3e9c02eabd8c5768745c8a99d7fed"><div class="ttname"><a href="a00204.html#ga2ea3e9c02eabd8c5768745c8a99d7fed">hwloc_insert_pci_device_list</a></div><div class="ttdeci">int hwloc_insert_pci_device_list(struct hwloc_backend *backend, struct hwloc_obj *first_obj)</div><div class="ttdoc">Insert a list of PCI devices and bridges in the backend topology. </div></div>
<div class="ttc" id="a00200_html_ga0dceb95fada01e5e4558429912053ca7"><div class="ttname"><a href="a00200.html#ga0dceb95fada01e5e4558429912053ca7">hwloc_disc_component_type_e</a></div><div class="ttdeci">hwloc_disc_component_type_e</div><div class="ttdoc">Discovery component type. </div><div class="ttdef"><b>Definition:</b> plugins.h:28</div></div>
<div class="ttc" id="a00201_html_ga505a5470745bf0b601f4d25a69601411"><div class="ttname"><a href="a00201.html#ga505a5470745bf0b601f4d25a69601411">hwloc_backends_get_obj_cpuset</a></div><div class="ttdeci">int hwloc_backends_get_obj_cpuset(struct hwloc_backend *caller, struct hwloc_obj *obj, hwloc_bitmap_t cpuset)</div><div class="ttdoc">Used by backends discovery callbacks to request locality information from others. ...</div></div>
<div class="ttc" id="a00320_html"><div class="ttname"><a href="a00320.html">hwloc_component</a></div><div class="ttdoc">Generic component structure. </div><div class="ttdef"><b>Definition:</b> plugins.h:215</div></div>
<div class="ttc" id="a00216_html_acc4f0803f244867e68fe0036800be5de"><div class="ttname"><a href="a00216.html#acc4f0803f244867e68fe0036800be5de">hwloc_obj::type</a></div><div class="ttdeci">hwloc_obj_type_t type</div><div class="ttdoc">Type of object. </div><div class="ttdef"><b>Definition:</b> hwloc.h:347</div></div>
<div class="ttc" id="a00216_html_a61a7a80a68eaccbaaa28269e678c81a9"><div class="ttname"><a href="a00216.html#a61a7a80a68eaccbaaa28269e678c81a9">hwloc_obj::os_index</a></div><div class="ttdeci">unsigned os_index</div><div class="ttdoc">OS-provided physical index number. It is not guaranteed unique across the entire machine, except for PUs and NUMA nodes. </div><div class="ttdef"><b>Definition:</b> hwloc.h:349</div></div>
<div class="ttc" id="a00186_html_gaa3c2bf4c776d603dcebbb61b0c923d84"><div class="ttname"><a href="a00186.html#gaa3c2bf4c776d603dcebbb61b0c923d84">hwloc_bitmap_t</a></div><div class="ttdeci">struct hwloc_bitmap_s * hwloc_bitmap_t</div><div class="ttdoc">Set of bits represented as an opaque pointer to an internal bitmap. </div><div class="ttdef"><b>Definition:</b> bitmap.h:51</div></div>
<div class="ttc" id="a00202_html_ga397a1bf7d21dd073320ad0045340f463"><div class="ttname"><a href="a00202.html#ga397a1bf7d21dd073320ad0045340f463">hwloc_component_type_e</a></div><div class="ttdeci">hwloc_component_type_e</div><div class="ttdoc">Generic component type. </div><div class="ttdef"><b>Definition:</b> plugins.h:202</div></div>
<div class="ttc" id="a00200_html_gga0dceb95fada01e5e4558429912053ca7aaf4d61f8e2c7c28e88cd81bb565695b7"><div class="ttname"><a href="a00200.html#gga0dceb95fada01e5e4558429912053ca7aaf4d61f8e2c7c28e88cd81bb565695b7">HWLOC_DISC_COMPONENT_TYPE_MISC</a></div><div class="ttdoc">OpenCL, Cuda, etc. </div><div class="ttdef"><b>Definition:</b> plugins.h:42</div></div>
<div class="ttc" id="a00320_html_ab8043c5b4cc0e81aabba586ccb194335"><div class="ttname"><a href="a00320.html#ab8043c5b4cc0e81aabba586ccb194335">hwloc_component::flags</a></div><div class="ttdeci">unsigned long flags</div><div class="ttdoc">Component flags, unused for now. </div><div class="ttdef"><b>Definition:</b> plugins.h:255</div></div>
<div class="ttc" id="a00216_html_a67925e0f2c47f50408fbdb9bddd0790f"><div class="ttname"><a href="a00216.html#a67925e0f2c47f50408fbdb9bddd0790f">hwloc_obj::cpuset</a></div><div class="ttdeci">hwloc_cpuset_t cpuset</div><div class="ttdoc">CPUs covered by this object. </div><div class="ttdef"><b>Definition:</b> hwloc.h:398</div></div>
<div class="ttc" id="a00200_html_ga5c6112c1a7497e5f481b9634059d47b1"><div class="ttname"><a href="a00200.html#ga5c6112c1a7497e5f481b9634059d47b1">hwloc_disc_component_type_t</a></div><div class="ttdeci">enum hwloc_disc_component_type_e hwloc_disc_component_type_t</div><div class="ttdoc">Discovery component type. </div></div>
<div class="ttc" id="a00201_html_gad8ac8bba9ab6b9af423baba0c8337c6b"><div class="ttname"><a href="a00201.html#gad8ac8bba9ab6b9af423baba0c8337c6b">hwloc_backends_notify_new_object</a></div><div class="ttdeci">int hwloc_backends_notify_new_object(struct hwloc_backend *caller, struct hwloc_obj *obj)</div><div class="ttdoc">Used by backends discovery callbacks to notify other backends of new objects. </div></div>
<div class="ttc" id="a00200_html_gga0dceb95fada01e5e4558429912053ca7aa09e6a39b61eda5364eada626da88ecc"><div class="ttname"><a href="a00200.html#gga0dceb95fada01e5e4558429912053ca7aa09e6a39b61eda5364eada626da88ecc">HWLOC_DISC_COMPONENT_TYPE_CPU</a></div><div class="ttdoc">CPU-only discovery through the OS, or generic no-OS support. </div><div class="ttdef"><b>Definition:</b> plugins.h:31</div></div>
<div class="ttc" id="a00316_html_ab3d1836eeda1970a4c51342df186581e"><div class="ttname"><a href="a00316.html#ab3d1836eeda1970a4c51342df186581e">hwloc_backend::get_obj_cpuset</a></div><div class="ttdeci">int(* get_obj_cpuset)(struct hwloc_backend *backend, struct hwloc_backend *caller, struct hwloc_obj *obj, hwloc_bitmap_t cpuset)</div><div class="ttdoc">Callback used by the PCI backend to retrieve the locality of a PCI object from the OS/cpu backend...</div><div class="ttdef"><b>Definition:</b> plugins.h:151</div></div>
<div class="ttc" id="a00216_html_a68766f0b1c4d61b5bad87e3b81dacfde"><div class="ttname"><a href="a00216.html#a68766f0b1c4d61b5bad87e3b81dacfde">hwloc_obj::os_level</a></div><div class="ttdeci">signed os_level</div><div class="ttdoc">OS-provided physical level, -1 if unknown or meaningless. </div><div class="ttdef"><b>Definition:</b> hwloc.h:373</div></div>
<div class="ttc" id="a00316_html_a2ea5bd36b7f06efdb65b98b32af16c68"><div class="ttname"><a href="a00316.html#a2ea5bd36b7f06efdb65b98b32af16c68">hwloc_backend::private_data</a></div><div class="ttdeci">void * private_data</div><div class="ttdoc">Backend private data, or NULL if none. </div><div class="ttdef"><b>Definition:</b> plugins.h:138</div></div>
<div class="ttc" id="a00320_html_a789208ada7e17492cfd3a5a88a6bb0ee"><div class="ttname"><a href="a00320.html#a789208ada7e17492cfd3a5a88a6bb0ee">hwloc_component::type</a></div><div class="ttdeci">hwloc_component_type_t type</div><div class="ttdoc">Component type. </div><div class="ttdef"><b>Definition:</b> plugins.h:252</div></div>
<div class="ttc" id="a00203_html_gabb240e5b856a34963078ccec9a785ac1"><div class="ttname"><a href="a00203.html#gabb240e5b856a34963078ccec9a785ac1">hwloc_fill_object_sets</a></div><div class="ttdeci">int hwloc_fill_object_sets(hwloc_obj_t obj)</div><div class="ttdoc">Setup object cpusets/nodesets by OR&#39;ing its children. </div></div>
<div class="ttc" id="a00202_html_gga397a1bf7d21dd073320ad0045340f463a5d6e561f467fe9795a29e7368b613900"><div class="ttname"><a href="a00202.html#gga397a1bf7d21dd073320ad0045340f463a5d6e561f467fe9795a29e7368b613900">HWLOC_COMPONENT_TYPE_DISC</a></div><div class="ttdoc">The data field must point to a struct hwloc_disc_component. </div><div class="ttdef"><b>Definition:</b> plugins.h:204</div></div>
<div class="ttc" id="a00316_html"><div class="ttname"><a href="a00316.html">hwloc_backend</a></div><div class="ttdoc">Discovery backend structure. </div><div class="ttdef"><b>Definition:</b> plugins.h:114</div></div>
<div class="ttc" id="a00216_html"><div class="ttname"><a href="a00216.html">hwloc_obj</a></div><div class="ttdoc">Structure of a topology object. </div><div class="ttdef"><b>Definition:</b> hwloc.h:345</div></div>
<div class="ttc" id="a00216_html_adc494f6aed939992be1c55cca5822900"><div class="ttname"><a href="a00216.html#adc494f6aed939992be1c55cca5822900">hwloc_obj::parent</a></div><div class="ttdeci">struct hwloc_obj * parent</div><div class="ttdoc">Parent, NULL if root (system object) </div><div class="ttdef"><b>Definition:</b> hwloc.h:380</div></div>
<div class="ttc" id="a00312_html_a34144f4d59bf46524e4875194652412b"><div class="ttname"><a href="a00312.html#a34144f4d59bf46524e4875194652412b">hwloc_disc_component::excludes</a></div><div class="ttdeci">unsigned excludes</div><div class="ttdoc">Component types to exclude, as an OR&#39;ed set of hwloc_disc_component_type_e. </div><div class="ttdef"><b>Definition:</b> plugins.h:67</div></div>
<div class="ttc" id="a00203_html_ga64d210fcfd7e517095319420bf40ed0a"><div class="ttname"><a href="a00203.html#ga64d210fcfd7e517095319420bf40ed0a">hwloc_alloc_setup_object</a></div><div class="ttdeci">static struct hwloc_obj * hwloc_alloc_setup_object(hwloc_obj_type_t type, signed os_index)</div><div class="ttdoc">Allocate and initialize an object of the given type and physical index. </div><div class="ttdef"><b>Definition:</b> plugins.h:323</div></div>
<div class="ttc" id="a00201_html_ga330a0b581de4817d0cf1e7401db22436"><div class="ttname"><a href="a00201.html#ga330a0b581de4817d0cf1e7401db22436">hwloc_backend_alloc</a></div><div class="ttdeci">struct hwloc_backend * hwloc_backend_alloc(struct hwloc_disc_component *component)</div><div class="ttdoc">Allocate a backend structure, set good default values, initialize backend->component and topology...</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
|