Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

map.h File Reference

Header file for maps and lists. More...

#include <linux/types.h>

Go to the source code of this file.

Defines

#define key1str(ptr)   (ptr->n.key1.str)
 Extracts string from key1 union.
#define key2str(ptr)   (ptr->n.key2.str)
 Extracts string from key2 union.
#define key1int(ptr)   (ptr->n.key1.val)
 Extracts int from key1 union.
#define key2int(ptr)   (ptr->n.key2.val)
 Extracts int from key2 union.
#define _stp_map_key2(map, key1, key2)
 Macro to call the proper _stp_map_key functions based on the types of the arguments.
#define _stp_map_key(map, key)
 Macro to call the proper _stp_map_key function based on the type of the argument.
#define _stp_map_set(map, val)
 Macro to call the proper _stp_map_set function based on the type of the argument.
#define foreach(map, ptr)
 Loop through all elements of a map or list.
#define _stp_list_add(map, val)
 Macro to call the proper _stp_list_add function based on the types of the argument.

Typedefs

typedef map_rootMAP
 All maps are of this type.

Enumerations

enum  keytype { NONE, LONG, STR }
 keys can be longs or strings
enum  valtype { INT64, STAT, STRING, END }
 values can be either int64, stats or strings

Variables

enum keytype packed
 keys can be longs or strings


Detailed Description

Header file for maps and lists.

Definition in file map.h.