Linux Perf
rblist.h File Reference
#include <linux/rbtree.h>
#include <stdbool.h>
Include dependency graph for rblist.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rblist
 

Functions

void rblist__init (struct rblist *rblist)
 
void rblist__exit (struct rblist *rblist)
 
void rblist__delete (struct rblist *rblist)
 
int rblist__add_node (struct rblist *rblist, const void *new_entry)
 
void rblist__remove_node (struct rblist *rblist, struct rb_node *rb_node)
 
struct rb_node * rblist__find (struct rblist *rblist, const void *entry)
 
struct rb_node * rblist__findnew (struct rblist *rblist, const void *entry)
 
struct rb_node * rblist__entry (const struct rblist *rblist, unsigned int idx)
 
static bool rblist__empty (const struct rblist *rblist)
 
static unsigned int rblist__nr_entries (const struct rblist *rblist)
 

Function Documentation

◆ rblist__add_node()

int rblist__add_node ( struct rblist rblist,
const void *  new_entry 
)

Definition at line 14 of file rblist.c.

◆ rblist__delete()

void rblist__delete ( struct rblist rblist)

Definition at line 115 of file rblist.c.

Here is the call graph for this function:

◆ rblist__empty()

static bool rblist__empty ( const struct rblist rblist)
inlinestatic

Definition at line 40 of file rblist.h.

◆ rblist__entry()

struct rb_node* rblist__entry ( const struct rblist rblist,
unsigned int  idx 
)

Definition at line 123 of file rblist.c.

◆ rblist__exit()

void rblist__exit ( struct rblist rblist)

Definition at line 104 of file rblist.c.

Here is the call graph for this function:

◆ rblist__find()

struct rb_node* rblist__find ( struct rblist rblist,
const void *  entry 
)

Definition at line 84 of file rblist.c.

Here is the call graph for this function:

◆ rblist__findnew()

struct rb_node* rblist__findnew ( struct rblist rblist,
const void *  entry 
)

Definition at line 89 of file rblist.c.

Here is the call graph for this function:

◆ rblist__init()

void rblist__init ( struct rblist rblist)

Definition at line 94 of file rblist.c.

◆ rblist__nr_entries()

static unsigned int rblist__nr_entries ( const struct rblist rblist)
inlinestatic

Definition at line 45 of file rblist.h.

◆ rblist__remove_node()

void rblist__remove_node ( struct rblist rblist,
struct rb_node *  rb_node 
)

Definition at line 44 of file rblist.c.