1、原型
/**
* rt_list_for_each - iterate over a list
* @pos: the rt_list_t * to use as a loop cursor.
* @head: the head for your list.
*/
#define rt_list_for_each(pos, head)
for (pos = (head)->next; pos != (head); pos = pos->next)
2、作用
遍历一个双向链表
3、参数
参数 pos:遍历链表需要用到的临时变量
参数 head:需要遍历的链表的头指针
最后
以上就是如意花瓣最近收集整理的关于RT-Thread内核-rt_list_for_each的全部内容,更多相关RT-Thread内核-rt_list_for_each内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复