Go to the documentation of this file.
29 #ifndef _LINUX_RBTREE_H
30 #define _LINUX_RBTREE_H
32 #include <linux/kernel.h>
33 #include <linux/stddef.h>
47 #define rb_parent(r) ((struct rb_node *)((r)->__rb_parent_color & ~3))
49 #define RB_ROOT (struct rb_root) { NULL, }
50 #define rb_entry(ptr, type, member) container_of(ptr, type, member)
52 #define RB_EMPTY_ROOT(root) ((root)->rb_node == NULL)
55 #define RB_EMPTY_NODE(node) \
56 ((node)->__rb_parent_color == (unsigned long)(node))
57 #define RB_CLEAR_NODE(node) \
58 ((node)->__rb_parent_color = (unsigned long)(node))