<div dir="ltr">hi all:<div> the codes of functions is:</div><div><br></div><div><pre class="" style="font-family:Monaco,'Courier New',Courier,monospace;font-size:1.1em;padding:1em;color:rgb(0,12,0);background-color:rgb(51,51,51);overflow:auto;border:1px solid rgb(136,136,136)">
<span class="" style="color:rgb(255,255,255)"> </span><a name="L51" href="http://lxr.oss.org.cn/source/include/asm-sh/posix_types.h?v=2.6.16#L51" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="" style="color:rgb(205,92,92)">51</span></a><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(135,206,235)">#undef</span><span class="" style="color:rgb(255,255,255)"> </span><a href="http://lxr.oss.org.cn/ident?v=2.6.16;i=__FD_SET" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="">__FD_SET</span></a><span class="" style="color:rgb(255,255,255)">
</span><a name="L52" href="http://lxr.oss.org.cn/source/include/asm-sh/posix_types.h?v=2.6.16#L52" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="" style="color:rgb(205,92,92)">52</span></a><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(240,230,140);font-weight:bold">static</span><span class="" style="color:rgb(255,255,255)"> __inline__ </span><span class="" style="color:rgb(240,230,140);font-weight:bold">void</span><span class="" style="color:rgb(255,255,255)"> </span><a href="http://lxr.oss.org.cn/ident?v=2.6.16;i=__FD_SET" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="">__FD_SET</span></a><span class="" style="color:rgb(255,255,255)">(</span><span class="" style="color:rgb(240,230,140);font-weight:bold">unsigned</span><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(240,230,140);font-weight:bold">long</span><span class="" style="color:rgb(255,255,255)"> __fd</span><span class="" style="color:rgb(255,255,255)">,</span><span class="" style="color:rgb(255,255,255)"> </span><a href="http://lxr.oss.org.cn/ident?v=2.6.16;i=__kernel_fd_set" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="">__kernel_fd_set</span></a><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(255,255,255)">*</span><span class="" style="color:rgb(255,255,255)">__fdsetp</span><span class="" style="color:rgb(255,255,255)">)</span><span class="" style="color:rgb(255,255,255)">
</span><a name="L53" href="http://lxr.oss.org.cn/source/include/asm-sh/posix_types.h?v=2.6.16#L53" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="" style="color:rgb(205,92,92)">53</span></a><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(255,255,255)">{</span><span class="" style="color:rgb(255,255,255)">
</span><a name="L54" href="http://lxr.oss.org.cn/source/include/asm-sh/posix_types.h?v=2.6.16#L54" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="" style="color:rgb(205,92,92)">54</span></a><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(240,230,140);font-weight:bold">unsigned</span><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(240,230,140);font-weight:bold">long</span><span class="" style="color:rgb(255,255,255)"> __tmp </span><span class="" style="color:rgb(255,255,255)">=</span><span class="" style="color:rgb(255,255,255)"> __fd </span><span class="" style="color:rgb(255,255,255)">/</span><span class="" style="color:rgb(255,255,255)"> </span><a href="http://lxr.oss.org.cn/ident?v=2.6.16;i=__NFDBITS" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="">__NFDBITS</span></a><span class="" style="color:rgb(255,255,255)">;</span><span class="" style="color:rgb(255,255,255)">
</span><a name="L55" href="http://lxr.oss.org.cn/source/include/asm-sh/posix_types.h?v=2.6.16#L55" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="" style="color:rgb(205,92,92)">55</span></a><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(240,230,140);font-weight:bold">unsigned</span><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(240,230,140);font-weight:bold">long</span><span class="" style="color:rgb(255,255,255)"> __rem </span><span class="" style="color:rgb(255,255,255)">=</span><span class="" style="color:rgb(255,255,255)"> __fd </span><span class="" style="color:rgb(255,255,255)">%</span><span class="" style="color:rgb(255,255,255)"> </span><a href="http://lxr.oss.org.cn/ident?v=2.6.16;i=__NFDBITS" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="">__NFDBITS</span></a><span class="" style="color:rgb(255,255,255)">;</span><span class="" style="color:rgb(255,255,255)">
</span><a name="L56" href="http://lxr.oss.org.cn/source/include/asm-sh/posix_types.h?v=2.6.16#L56" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="" style="color:rgb(205,92,92)">56</span></a><span class="" style="color:rgb(255,255,255)"> __fdsetp</span><span class="" style="color:rgb(255,255,255)">-></span><span class="" style="color:rgb(255,255,255)">fds_bits</span><span class="" style="color:rgb(255,255,255)">[</span><span class="" style="color:rgb(255,255,255)">__tmp</span><span class="" style="color:rgb(255,255,255)">]</span><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(255,255,255)">|=</span><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(255,255,255)">(</span><span class="" style="color:rgb(205,92,92)">1UL</span><span class="" style="color:rgb(255,255,255)"><<</span><span class="" style="color:rgb(255,255,255)">__rem</span><span class="" style="color:rgb(255,255,255)">);</span><span class="" style="color:rgb(255,255,255)">
</span><a name="L57" href="http://lxr.oss.org.cn/source/include/asm-sh/posix_types.h?v=2.6.16#L57" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="" style="color:rgb(205,92,92)">57</span></a><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(255,255,255)">}</span></pre>
</div><div><br></div><div>I can't understand the usage of __rem,How to understand it? thank you.</div><div><br></div><div>PS:</div><div><br></div><div><pre class="" style="font-family:Monaco,'Courier New',Courier,monospace;font-size:1.1em;padding:1em;color:rgb(0,12,0);background-color:rgb(51,51,51);overflow:auto;border:1px solid rgb(136,136,136)">
<span class="" style="color:rgb(255,255,255)">
</span><a name="L21" href="http://lxr.oss.org.cn/source/include/linux/posix_types.h?v=2.6.16#L21" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="" style="color:rgb(205,92,92)">21</span></a><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(135,206,235)">#undef</span><span class="" style="color:rgb(255,255,255)"> </span><a href="http://lxr.oss.org.cn/ident?v=2.6.16;i=__NFDBITS" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="">__NFDBITS</span></a><span class="" style="color:rgb(255,255,255)">
</span><a name="L22" href="http://lxr.oss.org.cn/source/include/linux/posix_types.h?v=2.6.16#L22" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="" style="color:rgb(205,92,92)">22</span></a><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(135,206,235)">#define</span><span class="" style="color:rgb(255,255,255)"> </span><a href="http://lxr.oss.org.cn/ident?v=2.6.16;i=__NFDBITS" style="text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(153,153,153);color:white"><span class="">__NFDBITS</span></a><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(255,255,255)">(</span><span class="" style="color:rgb(205,92,92)">8</span><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(255,255,255)">*</span><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(240,230,140);font-weight:bold">sizeof</span><span class="" style="color:rgb(255,255,255)">(</span><span class="" style="color:rgb(240,230,140);font-weight:bold">unsigned</span><span class="" style="color:rgb(255,255,255)"> </span><span class="" style="color:rgb(240,230,140);font-weight:bold">long</span><span class="" style="color:rgb(255,255,255)">))</span></pre>
</div></div>