Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/stddef.h>
Go to the source code of this file.
Data Structures | |
struct | rb_node |
struct | rb_root |
Macros | |
#define | rb_parent(r) ((struct rb_node *)((r)->__rb_parent_color & ~3)) |
#define | RB_ROOT (struct rb_root) { NULL, } |
#define | rb_entry(ptr, type, member) container_of(ptr, type, member) |
#define | RB_EMPTY_ROOT(root) ((root)->rb_node == NULL) |
#define | RB_EMPTY_NODE(node) ((node)->__rb_parent_color == (unsigned long)(node)) |
#define | RB_CLEAR_NODE(node) ((node)->__rb_parent_color = (unsigned long)(node)) |
Functions | |
struct rb_node | __attribute__ ((aligned(sizeof(long)))) |
void | rb_insert_color (struct rb_node *, struct rb_root *) |
void | rb_erase (struct rb_node *, struct rb_root *) |
struct rb_node * | rb_next (const struct rb_node *) |
struct rb_node * | rb_prev (const struct rb_node *) |
struct rb_node * | rb_first (const struct rb_root *) |
struct rb_node * | rb_last (const struct rb_root *) |
void | rb_replace_node (struct rb_node *victim, struct rb_node *new, struct rb_root *root) |
Variables | |
unsigned long | __rb_parent_color |
struct rb_node * | rb_right |
struct rb_node * | rb_left |
struct rb_root | __attribute__ |
#define RB_CLEAR_NODE | ( | node | ) | ((node)->__rb_parent_color = (unsigned long)(node)) |
#define RB_EMPTY_NODE | ( | node | ) | ((node)->__rb_parent_color == (unsigned long)(node)) |
#define rb_entry | ( | ptr, | |
type, | |||
member | |||
) | container_of(ptr, type, member) |
#define rb_parent | ( | r | ) | ((struct rb_node *)((r)->__rb_parent_color & ~3)) |