nodemanager.h (0a0fc0ddbe732779366ab6b1b879f62195e65967) | nodemanager.h (296b75ed6a3b35f613961cefe4962ce1cf586d77) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * nodemanager.h 5 * 6 * Function prototypes 7 * 8 * Copyright (C) 2004 Oracle. All rights reserved. --- 39 unchanged lines hidden (view full) --- 48 __be16 nd_ipv4_port; 49 struct rb_node nd_ip_node; 50 /* there can be only one local node for now */ 51 int nd_local; 52 53 unsigned long nd_set_attributes; 54}; 55 | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * nodemanager.h 5 * 6 * Function prototypes 7 * 8 * Copyright (C) 2004 Oracle. All rights reserved. --- 39 unchanged lines hidden (view full) --- 48 __be16 nd_ipv4_port; 49 struct rb_node nd_ip_node; 50 /* there can be only one local node for now */ 51 int nd_local; 52 53 unsigned long nd_set_attributes; 54}; 55 |
56struct o2nm_cluster { 57 struct config_group cl_group; 58 unsigned cl_has_local:1; 59 u8 cl_local_node; 60 rwlock_t cl_nodes_lock; 61 struct o2nm_node *cl_nodes[O2NM_MAX_NODES]; 62 struct rb_root cl_node_ip_tree; 63 64 /* this bitmap is part of a hack for disk bitmap.. will go eventually. - zab */ 65 unsigned long cl_nodes_bitmap[BITS_TO_LONGS(O2NM_MAX_NODES)]; 66}; 67 68extern struct o2nm_cluster *o2nm_single_cluster; 69 |
|
56u8 o2nm_this_node(void); 57 58int o2nm_configured_node_map(unsigned long *map, unsigned bytes); 59struct o2nm_node *o2nm_get_node_by_num(u8 node_num); 60struct o2nm_node *o2nm_get_node_by_ip(__be32 addr); 61void o2nm_node_get(struct o2nm_node *node); 62void o2nm_node_put(struct o2nm_node *node); 63 64#endif /* O2CLUSTER_NODEMANAGER_H */ | 70u8 o2nm_this_node(void); 71 72int o2nm_configured_node_map(unsigned long *map, unsigned bytes); 73struct o2nm_node *o2nm_get_node_by_num(u8 node_num); 74struct o2nm_node *o2nm_get_node_by_ip(__be32 addr); 75void o2nm_node_get(struct o2nm_node *node); 76void o2nm_node_put(struct o2nm_node *node); 77 78#endif /* O2CLUSTER_NODEMANAGER_H */ |