内核数据结构

内核数据结构 (作者:Baron_wu 禁止转载) 这部分包含了修改内核模块,所以要使用到内核链接表数据结构。 首先你得定义一个包含元素的结构去插入链表。 下边这段代码用C语言定义了生日结构: struct birthday { int day; int month; int year; struct list_head list; }; 注意struct list_head list。
相关文章
相关标签/搜索