list_del()
来源:互联网 发布:淘宝 赣南脐橙 编辑:程序博客网 时间:2024/05/17 19:20
从entry所在的双向链表中将entry删除:
static inline void list_del(struct list_head *entry)
{
__list_del(entry->prev, entry->next);
entry->next = LIST_POISON1;
entry->prev = LIST_POISON2;
}
{
__list_del(entry->prev, entry->next);
entry->next = LIST_POISON1;
entry->prev = LIST_POISON2;
}
/*
* These are non-NULL pointers that will result in page faults
* under normal circumstances, used to verify that nobody uses
* non-initialized list entries.
*/
#define LIST_POISON1 ((void *) 0x00100100)
#define LIST_POISON2 ((void *) 0x00200200)
* These are non-NULL pointers that will result in page faults
* under normal circumstances, used to verify that nobody uses
* non-initialized list entries.
*/
#define LIST_POISON1 ((void *) 0x00100100)
#define LIST_POISON2 ((void *) 0x00200200)
0 0
- list_del()
- list_del()
- list_del 分析
- list_del 分析2
- linux内核删除list_del()删除元素…
- linux双向链表分析之list_del中的技巧
- linux双向链表分析之list_del中的技巧
- linux双向链表分析之list_del中的技巧
- list_del使用错误,如果摘链后还有挂链,请使用list_del_init。否则引发血案!!!
- 随感,有点乱
- 初始三层架构
- URAL 1081. Binary Lexicographic Sequence(简单dp)
- rand()的用法
- UVA 12123 - Magnetic Train Tracks(计数问题)
- list_del()
- 数据库索引
- POJ1005
- CCLayer中Touch事件(Standard Touch Delegate和Targeted Touch Delegate)
- HTML浏览器对象的结构
- forTest
- 9.5 不要轻视拷贝构造函数与赋值函数
- Java加上Xtend,满足你对C#语法的所有想象
- 自己动手做个智能小车(1)