<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.<br><br></div>--Wendell.<br><div><div><div><div>
<div><div><div><div><div><br><br></div></div></div></div></div></div></div></div></div></div>