Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
geo.h File Reference

Go to the source code of this file.

Data Structures

struct  geo_common_s
 
struct  geo_node_s
 
struct  geo_rtr_s
 
struct  geo_iocntl_s
 
struct  geo_pcicard_s
 
struct  geo_cpu_s
 
struct  geo_mem_s
 
union  geoid_u
 

Macros

#define GEOID_SIZE
 
#define MAX_SLOTS   0xf /* slots per module */
 
#define MAX_SLABS   0xf /* slabs per slot */
 
#define GEO_MAX_LEN
 
#define GEO_TYPE_INVALID   0
 
#define GEO_TYPE_MODULE   1
 
#define GEO_TYPE_NODE   2
 
#define GEO_TYPE_RTR   3
 
#define GEO_TYPE_IOCNTL   4
 
#define GEO_TYPE_IOCARD   5
 
#define GEO_TYPE_CPU   6
 
#define GEO_TYPE_MEM   7
 
#define GEO_TYPE_MAX   (GEO_TYPE_MEM+1)
 
#define GEO_COMPT_MODULE   1
 
#define GEO_COMPT_SLAB   2
 
#define GEO_COMPT_IOBUS   3
 
#define GEO_COMPT_IOSLOT   4
 
#define GEO_COMPT_CPU   5
 
#define GEO_COMPT_MEMBUS   6
 
#define GEO_COMPT_MEMSLOT   7
 
#define GEO_INVALID_STR   "<invalid>"
 
#define INVALID_NASID   ((nasid_t)-1)
 
#define INVALID_CNODEID   ((cnodeid_t)-1)
 
#define INVALID_PNODEID   ((pnodeid_t)-1)
 
#define INVALID_SLAB   (slabid_t)-1
 
#define INVALID_SLOT   (slotid_t)-1
 
#define INVALID_MODULE   ((moduleid_t)-1)
 

Typedefs

typedef unsigned char geo_type_t
 
typedef struct geo_common_s geo_common_t
 
typedef struct geo_node_s geo_node_t
 
typedef struct geo_rtr_s geo_rtr_t
 
typedef struct geo_iocntl_s geo_iocntl_t
 
typedef struct geo_pcicard_s geo_pcicard_t
 
typedef struct geo_cpu_s geo_cpu_t
 
typedef struct geo_mem_s geo_mem_t
 
typedef union geoid_u geoid_t
 

Functions

geoid_t cnodeid_get_geoid (cnodeid_t cnode)
 

Macro Definition Documentation

#define GEO_COMPT_CPU   5

Definition at line 97 of file geo.h.

#define GEO_COMPT_IOBUS   3

Definition at line 95 of file geo.h.

#define GEO_COMPT_IOSLOT   4

Definition at line 96 of file geo.h.

#define GEO_COMPT_MEMBUS   6

Definition at line 98 of file geo.h.

#define GEO_COMPT_MEMSLOT   7

Definition at line 99 of file geo.h.

#define GEO_COMPT_MODULE   1

Definition at line 93 of file geo.h.

#define GEO_COMPT_SLAB   2

Definition at line 94 of file geo.h.

#define GEO_INVALID_STR   "<invalid>"

Definition at line 101 of file geo.h.

#define GEO_MAX_LEN
Value:
48 /* max. formatted length, plus some pad:
module/001c07/slab/5/node/memory/2/slot/4 */

Definition at line 79 of file geo.h.

#define GEO_TYPE_CPU   6

Definition at line 88 of file geo.h.

#define GEO_TYPE_INVALID   0

Definition at line 82 of file geo.h.

#define GEO_TYPE_IOCARD   5

Definition at line 87 of file geo.h.

#define GEO_TYPE_IOCNTL   4

Definition at line 86 of file geo.h.

#define GEO_TYPE_MAX   (GEO_TYPE_MEM+1)

Definition at line 90 of file geo.h.

#define GEO_TYPE_MEM   7

Definition at line 89 of file geo.h.

#define GEO_TYPE_MODULE   1

Definition at line 83 of file geo.h.

#define GEO_TYPE_NODE   2

Definition at line 84 of file geo.h.

#define GEO_TYPE_RTR   3

Definition at line 85 of file geo.h.

#define GEOID_SIZE
Value:
8 /* Would 16 be better? The size can
be different on different platforms. */

Definition at line 18 of file geo.h.

#define INVALID_CNODEID   ((cnodeid_t)-1)

Definition at line 104 of file geo.h.

#define INVALID_MODULE   ((moduleid_t)-1)

Definition at line 108 of file geo.h.

#define INVALID_NASID   ((nasid_t)-1)

Definition at line 103 of file geo.h.

#define INVALID_PNODEID   ((pnodeid_t)-1)

Definition at line 105 of file geo.h.

#define INVALID_SLAB   (slabid_t)-1

Definition at line 106 of file geo.h.

#define INVALID_SLOT   (slotid_t)-1

Definition at line 107 of file geo.h.

#define MAX_SLABS   0xf /* slabs per slot */

Definition at line 21 of file geo.h.

#define MAX_SLOTS   0xf /* slots per module */

Definition at line 20 of file geo.h.

Typedef Documentation

typedef unsigned char geo_type_t

Definition at line 23 of file geo.h.

typedef union geoid_u geoid_t

Function Documentation

geoid_t cnodeid_get_geoid ( cnodeid_t  cnode)

Definition at line 403 of file io_common.c.