<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div style="font-family:arial; font-size:14px; line-height:23px">void o2net_fill_node_map(unsigned long *map, unsigned bytes)</div>
<div style="font-family:arial; font-size:14px; line-height:23px">{</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><span class="Apple-tab-span" style="white-space:pre"></span>struct o2net_sock_container *sc = NULL;</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><span class="Apple-tab-span" style="white-space:pre"></span>int node, ret;</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><br>
</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><span class="Apple-tab-span" style="white-space:pre"></span>BUG_ON(bytes &lt; (BITS_TO_LONGS(O2NM_MAX_NODES) * sizeof(unsigned long)));</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><br>
</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><span class="Apple-tab-span" style="white-space:pre"></span>memset(map, 0, bytes);</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><span class="Apple-tab-span" style="white-space:pre"></span>for (node = 0; node &lt; O2NM_MAX_NODES; &#43;&#43;node) { &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><span class="Apple-tab-span" style="white-space:pre"></span>o2net_tx_can_proceed(o2net_nn_from_num(node), &amp;sc, &amp;ret);</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><span class="Apple-tab-span" style="white-space:pre"></span>if (!ret) {</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><span class="Apple-tab-span" style="white-space:pre"></span>set_bit(node, map);</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><br>
</div>
<div style="font-family:arial; font-size:14px; line-height:23px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">
</span>&nbsp;if (sc) {</div>
<div style="font-family:arial; font-size:14px; line-height:23px">&nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space:pre">
</span>sc_put(sc);</div>
<div style="font-family:arial; font-size:14px; line-height:23px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space:pre">
</span>&nbsp; }</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><span class="Apple-tab-span" style="white-space:pre"></span>}<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="line-height:1.7; white-space:pre"></span></div>
<div style="font-family:arial; font-size:14px; line-height:23px">&#43;<span class="Apple-tab-span" style="white-space:pre">
</span>sc = NULL;</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><span class="Apple-tab-span" style="white-space:pre"></span>}</div>
<div style="font-family:arial; font-size:14px; line-height:23px">}</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><br>
</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><br>
</div>
<div style="font-family:arial; font-size:14px; line-height:23px"><br>
</div>
<div><br>
</div>
</div>
<span style="font-size:7.5pt; font-family:华文细黑; color:gray"><span lang="EN-US">-------------------------------------------------------------------------------------------------------------------------------------<br>
</span>本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出<span lang="EN-US"><br>
</span>的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、<span lang="EN-US"><br>
</span>或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本<span lang="EN-US"><br>
</span>邮件!<span lang="EN-US"><br>
</span></span><span lang="EN-US" style="font-size:7.5pt; font-family:&quot;Arial&quot;,&quot;sans-serif&quot;; color:gray">This e-mail and its attachments contain confidential information from H3C, which is
<br>
intended only for the person or entity whose address is listed above. Any use of the
<br>
information contained herein in any way (including, but not limited to, total or partial
<br>
disclosure, reproduction, or dissemination) by persons other than the intended <br>
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
<br>
by phone or email immediately and delete it!</span>
</body>
</html>