Lines Matching refs:net

109 	struct net *net;  member
113 static void tipc_net_finalize(struct net *net, u32 addr);
115 int tipc_net_init(struct net *net, u8 *node_id, u32 addr) in tipc_net_init() argument
117 if (tipc_own_id(net)) { in tipc_net_init()
124 tipc_set_node_id(net, node_id); in tipc_net_init()
126 tipc_net_finalize(net, addr); in tipc_net_init()
130 static void tipc_net_finalize(struct net *net, u32 addr) in tipc_net_finalize() argument
132 struct tipc_net *tn = tipc_net(net); in tipc_net_finalize()
136 tipc_set_node_addr(net, addr); in tipc_net_finalize()
137 tipc_named_reinit(net); in tipc_net_finalize()
138 tipc_sk_reinit(net); in tipc_net_finalize()
139 tipc_nametbl_publish(net, TIPC_CFG_SRV, addr, addr, in tipc_net_finalize()
148 tipc_net_finalize(fwork->net, fwork->addr); in tipc_net_finalize_work()
152 void tipc_sched_net_finalize(struct net *net, u32 addr) in tipc_sched_net_finalize() argument
159 fwork->net = net; in tipc_sched_net_finalize()
164 void tipc_net_stop(struct net *net) in tipc_net_stop() argument
166 if (!tipc_own_id(net)) in tipc_net_stop()
170 tipc_bearer_stop(net); in tipc_net_stop()
171 tipc_node_stop(net); in tipc_net_stop()
177 static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_add_net() argument
179 struct tipc_net *tn = net_generic(net, tipc_net_id); in __tipc_nl_add_net()
215 struct net *net = sock_net(skb->sk); in tipc_nl_net_dump() local
227 err = __tipc_nl_add_net(net, &msg); in tipc_nl_net_dump()
241 struct net *net = sock_net(skb->sk); in __tipc_nl_net_set() local
242 struct tipc_net *tn = tipc_net(net); in __tipc_nl_net_set()
256 if (tipc_own_addr(net)) in __tipc_nl_net_set()
276 tipc_net_init(net, NULL, addr); in __tipc_nl_net_set()
288 tipc_net_init(net, node_id, 0); in __tipc_nl_net_set()