<div dir="ltr"><div><div>Oh, Sorry... forget about it.<br><br></div>The routine rtems_chain_set_off_chain(node) is supposed to be called by the user.<br><br></div>--Wendell.<br><br><div><div><div><div class="gmail_extra"><br>
<br><div class="gmail_quote">2013/4/12 Wendell Silva <span dir="ltr"><<a href="mailto:silvawp@gmail.com" target="_blank">silvawp@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>Let chain C, already initialized with N nodes, N > 0.<br><br></div>rtems_chain_node* node = rtems_chain_get_first(&C);<br><br></div>
According to the documentation of rtems_chain_get_first, the node is REMOVED from the chain.<br>
</div>But, node doest not pass the test of being removed (or extracted) in rtems_chain_node_is_off_chain.<br><br></div>So, rtems_chain_node_is_off_chain(node) returns false. But it should return true.<br></div><br></div>
Inspecting the node, I noticed that node->next and node->previous aren't NULL as expected for a node that was extracted from a chain.<br>
<br></div>Conclusion: unless the term REMOVED is not the same as EXTRACTED, probably this is a bug in rtems_chain_get_first;<br><br></div>Please, educate me if I'm wrong.<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></div><span class="HOEnZb"><font color="#888888">--Wendell.<br><div><div><div><div>
<div><div><div><div><div><br><br></div></div></div></div></div></div></div></div></div></font></span></div>
</blockquote></div><br></div></div></div></div></div>