Lines Matching defs:node_sub
47 void tipc_nodesub_subscribe(struct node_subscr *node_sub, u32 addr,
51 node_sub->node = NULL;
55 node_sub->node = tipc_node_find(addr);
56 if (!node_sub->node) {
60 node_sub->handle_node_down = handle_down;
61 node_sub->usr_handle = usr_handle;
63 tipc_node_lock(node_sub->node);
64 list_add_tail(&node_sub->nodesub_list, &node_sub->node->nsub);
65 tipc_node_unlock(node_sub->node);
72 void tipc_nodesub_unsubscribe(struct node_subscr *node_sub)
74 if (!node_sub->node)
77 tipc_node_lock(node_sub->node);
78 list_del_init(&node_sub->nodesub_list);
79 tipc_node_unlock(node_sub->node);