Chinaunix
标题:
各位大哥能不能帮看一下下面的内核代码是做什么的?
[打印本页]
作者:
victorxu79
时间:
2004-03-15 22:26
标题:
各位大哥能不能帮看一下下面的内核代码是做什么的?
各位大哥能不能帮看一下下面的内核代码是做什么的?(include/linux/list.h)
static __inline__ void list_splice(struct list_head *list, struct list_head *head)
{
struct list_head *first = list->;next;
if (first != list) {
struct list_head *last = list->;prev; struct list_head *at = head->;next;
first->;prev = head;
head->;next = first;
last->;next = at;
at->;prev = last;
}
}
struct list_head {
struct list_head *next,*prev;
}
作者:
zuibird
时间:
2004-03-16 10:56
标题:
各位大哥能不能帮看一下下面的内核代码是做什么的?
把l双向链表list, head连接建立一个以list为根,head为第一个叶节点的二叉树
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2