diff options
Diffstat (limited to 'net/tipc/node.h')
-rw-r--r-- | net/tipc/node.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/net/tipc/node.h b/net/tipc/node.h index b39442badccf..29f7ae6992d4 100644 --- a/net/tipc/node.h +++ b/net/tipc/node.h | |||
@@ -92,31 +92,31 @@ struct node { | |||
92 | } bclink; | 92 | } bclink; |
93 | }; | 93 | }; |
94 | 94 | ||
95 | extern struct node *nodes; | 95 | extern struct node *tipc_nodes; |
96 | extern u32 tipc_own_tag; | 96 | extern u32 tipc_own_tag; |
97 | 97 | ||
98 | struct node *node_create(u32 addr); | 98 | struct node *tipc_node_create(u32 addr); |
99 | void node_delete(struct node *n_ptr); | 99 | void tipc_node_delete(struct node *n_ptr); |
100 | struct node *node_attach_link(struct link *l_ptr); | 100 | struct node *tipc_node_attach_link(struct link *l_ptr); |
101 | void node_detach_link(struct node *n_ptr, struct link *l_ptr); | 101 | void tipc_node_detach_link(struct node *n_ptr, struct link *l_ptr); |
102 | void node_link_down(struct node *n_ptr, struct link *l_ptr); | 102 | void tipc_node_link_down(struct node *n_ptr, struct link *l_ptr); |
103 | void node_link_up(struct node *n_ptr, struct link *l_ptr); | 103 | void tipc_node_link_up(struct node *n_ptr, struct link *l_ptr); |
104 | int node_has_active_links(struct node *n_ptr); | 104 | int tipc_node_has_active_links(struct node *n_ptr); |
105 | int node_has_redundant_links(struct node *n_ptr); | 105 | int tipc_node_has_redundant_links(struct node *n_ptr); |
106 | u32 node_select_router(struct node *n_ptr, u32 ref); | 106 | u32 tipc_node_select_router(struct node *n_ptr, u32 ref); |
107 | struct node *node_select_next_hop(u32 addr, u32 selector); | 107 | struct node *tipc_node_select_next_hop(u32 addr, u32 selector); |
108 | int node_is_up(struct node *n_ptr); | 108 | int tipc_node_is_up(struct node *n_ptr); |
109 | void node_add_router(struct node *n_ptr, u32 router); | 109 | void tipc_node_add_router(struct node *n_ptr, u32 router); |
110 | void node_remove_router(struct node *n_ptr, u32 router); | 110 | void tipc_node_remove_router(struct node *n_ptr, u32 router); |
111 | struct sk_buff *node_get_links(const void *req_tlv_area, int req_tlv_space); | 111 | struct sk_buff *tipc_node_get_links(const void *req_tlv_area, int req_tlv_space); |
112 | struct sk_buff *node_get_nodes(const void *req_tlv_area, int req_tlv_space); | 112 | struct sk_buff *tipc_node_get_nodes(const void *req_tlv_area, int req_tlv_space); |
113 | 113 | ||
114 | static inline struct node *node_find(u32 addr) | 114 | static inline struct node *tipc_node_find(u32 addr) |
115 | { | 115 | { |
116 | if (likely(in_own_cluster(addr))) | 116 | if (likely(in_own_cluster(addr))) |
117 | return local_nodes[tipc_node(addr)]; | 117 | return tipc_local_nodes[tipc_node(addr)]; |
118 | else if (addr_domain_valid(addr)) { | 118 | else if (tipc_addr_domain_valid(addr)) { |
119 | struct cluster *c_ptr = cluster_find(addr); | 119 | struct cluster *c_ptr = tipc_cltr_find(addr); |
120 | 120 | ||
121 | if (c_ptr) | 121 | if (c_ptr) |
122 | return c_ptr->nodes[tipc_node(addr)]; | 122 | return c_ptr->nodes[tipc_node(addr)]; |
@@ -124,19 +124,19 @@ static inline struct node *node_find(u32 addr) | |||
124 | return 0; | 124 | return 0; |
125 | } | 125 | } |
126 | 126 | ||
127 | static inline struct node *node_select(u32 addr, u32 selector) | 127 | static inline struct node *tipc_node_select(u32 addr, u32 selector) |
128 | { | 128 | { |
129 | if (likely(in_own_cluster(addr))) | 129 | if (likely(in_own_cluster(addr))) |
130 | return local_nodes[tipc_node(addr)]; | 130 | return tipc_local_nodes[tipc_node(addr)]; |
131 | return node_select_next_hop(addr, selector); | 131 | return tipc_node_select_next_hop(addr, selector); |
132 | } | 132 | } |
133 | 133 | ||
134 | static inline void node_lock(struct node *n_ptr) | 134 | static inline void tipc_node_lock(struct node *n_ptr) |
135 | { | 135 | { |
136 | spin_lock_bh(&n_ptr->lock); | 136 | spin_lock_bh(&n_ptr->lock); |
137 | } | 137 | } |
138 | 138 | ||
139 | static inline void node_unlock(struct node *n_ptr) | 139 | static inline void tipc_node_unlock(struct node *n_ptr) |
140 | { | 140 | { |
141 | spin_unlock_bh(&n_ptr->lock); | 141 | spin_unlock_bh(&n_ptr->lock); |
142 | } | 142 | } |