Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | NODE_HTABLE_SIZE 512 |
Functions | |
LIST_HEAD (tipc_node_list) | |
struct tipc_node * | tipc_node_find (u32 addr) |
struct tipc_node * | tipc_node_create (u32 addr) |
void | tipc_node_delete (struct tipc_node *n_ptr) |
void | tipc_node_link_up (struct tipc_node *n_ptr, struct tipc_link *l_ptr) |
void | tipc_node_link_down (struct tipc_node *n_ptr, struct tipc_link *l_ptr) |
int | tipc_node_active_links (struct tipc_node *n_ptr) |
int | tipc_node_redundant_links (struct tipc_node *n_ptr) |
int | tipc_node_is_up (struct tipc_node *n_ptr) |
void | tipc_node_attach_link (struct tipc_node *n_ptr, struct tipc_link *l_ptr) |
void | tipc_node_detach_link (struct tipc_node *n_ptr, struct tipc_link *l_ptr) |
struct sk_buff * | tipc_node_get_nodes (const void *req_tlv_area, int req_tlv_space) |
struct sk_buff * | tipc_node_get_links (const void *req_tlv_area, int req_tlv_space) |
LIST_HEAD | ( | tipc_node_list | ) |
tipc_node_create - create neighboring node
Currently, this routine is called by neighbor discovery code, which holds net_lock for reading only. We must take node_create_lock to ensure a node isn't created twice if two different bearers discover the node at the same time. (It would be preferable to switch to holding net_lock in write mode, but this is a non-trivial change.)