Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions | Variables
nodemanager.c File Reference
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/configfs.h>
#include "tcp.h"
#include "nodemanager.h"
#include "heartbeat.h"
#include "masklog.h"
#include "sys.h"
#include "ver.h"

Go to the source code of this file.

Data Structures

struct  o2nm_node_attribute
 
struct  o2nm_node_group
 
struct  o2nm_cluster_attribute
 
struct  o2nm_cluster_group
 

Enumerations

enum  { O2NM_NODE_ATTR_NUM = 0, O2NM_NODE_ATTR_PORT, O2NM_NODE_ATTR_ADDRESS, O2NM_NODE_ATTR_LOCAL }
 

Functions

struct o2nm_nodeo2nm_get_node_by_num (u8 node_num)
 
 EXPORT_SYMBOL_GPL (o2nm_get_node_by_num)
 
int o2nm_configured_node_map (unsigned long *map, unsigned bytes)
 
 EXPORT_SYMBOL_GPL (o2nm_configured_node_map)
 
struct o2nm_nodeo2nm_get_node_by_ip (__be32 addr)
 
 EXPORT_SYMBOL_GPL (o2nm_get_node_by_ip)
 
void o2nm_node_put (struct o2nm_node *node)
 
 EXPORT_SYMBOL_GPL (o2nm_node_put)
 
void o2nm_node_get (struct o2nm_node *node)
 
 EXPORT_SYMBOL_GPL (o2nm_node_get)
 
u8 o2nm_this_node (void)
 
 EXPORT_SYMBOL_GPL (o2nm_this_node)
 
int o2nm_depend_item (struct config_item *item)
 
void o2nm_undepend_item (struct config_item *item)
 
int o2nm_depend_this_node (void)
 
void o2nm_undepend_this_node (void)
 
 MODULE_AUTHOR ("Oracle")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct o2nm_clustero2nm_single_cluster = NULL
 
charo2nm_fence_method_desc [O2NM_FENCE_METHODS]
 

Enumeration Type Documentation

anonymous enum
Enumerator:
O2NM_NODE_ATTR_NUM 
O2NM_NODE_ATTR_PORT 
O2NM_NODE_ATTR_ADDRESS 
O2NM_NODE_ATTR_LOCAL 

Definition at line 188 of file nodemanager.c.

Function Documentation

EXPORT_SYMBOL_GPL ( o2nm_get_node_by_num  )
EXPORT_SYMBOL_GPL ( o2nm_configured_node_map  )
EXPORT_SYMBOL_GPL ( o2nm_get_node_by_ip  )
EXPORT_SYMBOL_GPL ( o2nm_node_put  )
EXPORT_SYMBOL_GPL ( o2nm_node_get  )
EXPORT_SYMBOL_GPL ( o2nm_this_node  )
MODULE_AUTHOR ( "Oracle"  )
MODULE_LICENSE ( "GPL"  )
int o2nm_configured_node_map ( unsigned long map,
unsigned  bytes 
)

Definition at line 61 of file nodemanager.c.

int o2nm_depend_item ( struct config_item item)

Definition at line 893 of file nodemanager.c.

int o2nm_depend_this_node ( void  )

Definition at line 903 of file nodemanager.c.

struct o2nm_node* o2nm_get_node_by_ip ( __be32  addr)
read

Definition at line 113 of file nodemanager.c.

struct o2nm_node* o2nm_get_node_by_num ( u8  node_num)
read

Definition at line 44 of file nodemanager.c.

void o2nm_node_get ( struct o2nm_node node)

Definition at line 138 of file nodemanager.c.

void o2nm_node_put ( struct o2nm_node node)

Definition at line 132 of file nodemanager.c.

u8 o2nm_this_node ( void  )

Definition at line 144 of file nodemanager.c.

void o2nm_undepend_item ( struct config_item item)

Definition at line 898 of file nodemanager.c.

void o2nm_undepend_this_node ( void  )

Definition at line 921 of file nodemanager.c.

Variable Documentation

char* o2nm_fence_method_desc[O2NM_FENCE_METHODS]
Initial value:
= {
"reset",
"panic",
}

Definition at line 39 of file nodemanager.c.

struct o2nm_cluster* o2nm_single_cluster = NULL

Definition at line 37 of file nodemanager.c.