
数据结构
文章平均质量分 60
aaaLG
这个作者很懒,什么都没留下…
展开
-
【2022-1-15】linux内核struct list_head
linux kernel基础双向链表定义及基本操作 1. 数据结构定义 struct list_head { struct list_head *next, *prev; }; 2. 操作 2.1 定义一个双向链表 #define LIST_HEAD_INIT(name) { &(name), &(name) } #define LIST_HEAD(name) \ .原创 2022-01-15 13:46:38 · 842 阅读 · 0 评论 -
【2022-05-21】linux 内核 plist (优先级链表)
数据结构定义 /* 优先级链表头 */ struct plist_head { struct list_head node_list; }; /* 优先级链表节点 */ struct plist_node { int prio; /* 当前节点的优先级 */ struct list_head prio_list; /* 用于串联优先级链表中不同优先级的节点 */ struct list_head node_list; /* 用于串联优先级链表中所有原创 2022-05-21 16:50:15 · 1095 阅读 · 0 评论