diff options
Diffstat (limited to 'net/tipc/node.h')
-rw-r--r-- | net/tipc/node.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/net/tipc/node.h b/net/tipc/node.h index 242b918ddd14..fd86726ed192 100644 --- a/net/tipc/node.h +++ b/net/tipc/node.h | |||
@@ -51,11 +51,14 @@ | |||
51 | * TIPC_NODE_DOWN: indicate node is down | 51 | * TIPC_NODE_DOWN: indicate node is down |
52 | * TIPC_NAMES_GONE: indicate the node's publications are purged | 52 | * TIPC_NAMES_GONE: indicate the node's publications are purged |
53 | * TIPC_NODE_RESET: indicate node is reset | 53 | * TIPC_NODE_RESET: indicate node is reset |
54 | * TIPC_NODE_LOST: indicate node is lost and it's used to notify subscriptions | ||
55 | * when node lock is released | ||
54 | */ | 56 | */ |
55 | enum { | 57 | enum { |
56 | TIPC_NODE_DOWN = (1 << 1), | 58 | TIPC_NODE_DOWN = (1 << 1), |
57 | TIPC_NAMES_GONE = (1 << 2), | 59 | TIPC_NAMES_GONE = (1 << 2), |
58 | TIPC_NODE_RESET = (1 << 3) | 60 | TIPC_NODE_RESET = (1 << 3), |
61 | TIPC_NODE_LOST = (1 << 4) | ||
59 | }; | 62 | }; |
60 | 63 | ||
61 | /** | 64 | /** |
@@ -130,15 +133,11 @@ int tipc_node_is_up(struct tipc_node *n_ptr); | |||
130 | struct sk_buff *tipc_node_get_links(const void *req_tlv_area, int req_tlv_space); | 133 | struct sk_buff *tipc_node_get_links(const void *req_tlv_area, int req_tlv_space); |
131 | struct sk_buff *tipc_node_get_nodes(const void *req_tlv_area, int req_tlv_space); | 134 | struct sk_buff *tipc_node_get_nodes(const void *req_tlv_area, int req_tlv_space); |
132 | int tipc_node_get_linkname(u32 bearer_id, u32 node, char *linkname, size_t len); | 135 | int tipc_node_get_linkname(u32 bearer_id, u32 node, char *linkname, size_t len); |
136 | void tipc_node_unlock(struct tipc_node *node); | ||
133 | 137 | ||
134 | static inline void tipc_node_lock(struct tipc_node *n_ptr) | 138 | static inline void tipc_node_lock(struct tipc_node *node) |
135 | { | 139 | { |
136 | spin_lock_bh(&n_ptr->lock); | 140 | spin_lock_bh(&node->lock); |
137 | } | ||
138 | |||
139 | static inline void tipc_node_unlock(struct tipc_node *n_ptr) | ||
140 | { | ||
141 | spin_unlock_bh(&n_ptr->lock); | ||
142 | } | 141 | } |
143 | 142 | ||
144 | static inline bool tipc_node_blocked(struct tipc_node *node) | 143 | static inline bool tipc_node_blocked(struct tipc_node *node) |