Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
intlist.h File Reference
#include <linux/rbtree.h>
#include <stdbool.h>
#include "rblist.h"

Go to the source code of this file.

Data Structures

struct  int_node
 
struct  intlist
 

Macros

#define intlist__for_each(pos, ilist)   for (pos = intlist__first(ilist); pos; pos = intlist__next(pos))
 
#define intlist__for_each_safe(pos, n, ilist)
 

Functions

struct intlistintlist__new (void)
 
void intlist__delete (struct intlist *ilist)
 
void intlist__remove (struct intlist *ilist, struct int_node *in)
 
int intlist__add (struct intlist *ilist, int i)
 
struct int_nodeintlist__entry (const struct intlist *ilist, unsigned int idx)
 
struct int_nodeintlist__find (struct intlist *ilist, int i)
 

Macro Definition Documentation

#define intlist__for_each (   pos,
  ilist 
)    for (pos = intlist__first(ilist); pos; pos = intlist__next(pos))

intlist_for_each - iterate over a intlist : the &struct int_node to use as a loop cursor. : the &struct intlist for loop.

Definition at line 62 of file intlist.h.

#define intlist__for_each_safe (   pos,
  n,
  ilist 
)
Value:
for (pos = intlist__first(ilist), n = intlist__next(pos); pos;\
pos = n, n = intlist__next(n))

intlist_for_each_safe - iterate over a intlist safe against removal of int_node : the &struct int_node to use as a loop cursor.
: another &struct int_node to use as temporary storage. : the &struct intlist for loop.

Definition at line 72 of file intlist.h.

Function Documentation

int intlist__add ( struct intlist ilist,
int  i 
)

Definition at line 50 of file intlist.c.

void intlist__delete ( struct intlist ilist)

Definition at line 85 of file intlist.c.

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

Definition at line 91 of file intlist.c.

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

Definition at line 60 of file intlist.c.

struct intlist* intlist__new ( void  )
read

Definition at line 71 of file intlist.c.

void intlist__remove ( struct intlist ilist,
struct int_node in 
)

Definition at line 55 of file intlist.c.