Linux Perf
intlist.c File Reference
#include <errno.h>
#include <stdlib.h>
#include <linux/compiler.h>
#include "intlist.h"
Include dependency graph for intlist.c:

Go to the source code of this file.

Functions

static struct rb_node * intlist__node_new (struct rblist *rblist __maybe_unused, const void *entry)
 
static void int_node__delete (struct int_node *ilist)
 
static void intlist__node_delete (struct rblist *rblist __maybe_unused, struct rb_node *rb_node)
 
static int intlist__node_cmp (struct rb_node *rb_node, const void *entry)
 
int intlist__add (struct intlist *ilist, int i)
 
void intlist__remove (struct intlist *ilist, struct int_node *node)
 
static struct int_node__intlist__findnew (struct intlist *ilist, int i, bool create)
 
struct int_nodeintlist__find (struct intlist *ilist, int i)
 
struct int_nodeintlist__findnew (struct intlist *ilist, int i)
 
static int intlist__parse_list (struct intlist *ilist, const char *s)
 
struct intlistintlist__new (const char *slist)
 
void intlist__delete (struct intlist *ilist)
 
struct int_nodeintlist__entry (const struct intlist *ilist, unsigned int idx)
 

Function Documentation

◆ __intlist__findnew()

static struct int_node* __intlist__findnew ( struct intlist ilist,
int  i,
bool  create 
)
static

Definition at line 61 of file intlist.c.

Here is the call graph for this function:

◆ int_node__delete()

static void int_node__delete ( struct int_node ilist)
static

Definition at line 30 of file intlist.c.

Here is the call graph for this function:

◆ intlist__add()

int intlist__add ( struct intlist ilist,
int  i 
)

Definition at line 51 of file intlist.c.

Here is the call graph for this function:

◆ intlist__delete()

void intlist__delete ( struct intlist ilist)

Definition at line 130 of file intlist.c.

Here is the call graph for this function:

◆ intlist__entry()

struct int_node* intlist__entry ( const struct intlist ilist,
unsigned int  idx 
)

Definition at line 136 of file intlist.c.

Here is the call graph for this function:

◆ intlist__find()

struct int_node* intlist__find ( struct intlist ilist,
int  i 
)

Definition at line 81 of file intlist.c.

Here is the call graph for this function:

◆ intlist__findnew()

struct int_node* intlist__findnew ( struct intlist ilist,
int  i 
)

Definition at line 86 of file intlist.c.

Here is the call graph for this function:

◆ intlist__new()

struct intlist* intlist__new ( const char *  slist)

Definition at line 110 of file intlist.c.

Here is the call graph for this function:

◆ intlist__node_cmp()

static int intlist__node_cmp ( struct rb_node *  rb_node,
const void *  entry 
)
static

Definition at line 43 of file intlist.c.

Here is the call graph for this function:

◆ intlist__node_delete()

static void intlist__node_delete ( struct rblist *rblist  __maybe_unused,
struct rb_node *  rb_node 
)
static

Definition at line 35 of file intlist.c.

Here is the call graph for this function:

◆ intlist__node_new()

static struct rb_node* intlist__node_new ( struct rblist *rblist  __maybe_unused,
const void *  entry 
)
static

Definition at line 14 of file intlist.c.

Here is the call graph for this function:

◆ intlist__parse_list()

static int intlist__parse_list ( struct intlist ilist,
const char *  s 
)
static

Definition at line 91 of file intlist.c.

Here is the call graph for this function:

◆ intlist__remove()

void intlist__remove ( struct intlist ilist,
struct int_node node 
)

Definition at line 56 of file intlist.c.

Here is the call graph for this function: