Lines Matching defs:ns_reg

57  * - ns_reg
66 static struct netstack_registry ns_reg[NS_MAX];
169 ASSERT(ns_reg[moduleid].nr_create == NULL);
170 ASSERT(ns_reg[moduleid].nr_flags == 0);
171 ns_reg[moduleid].nr_create = module_create;
172 ns_reg[moduleid].nr_shutdown = module_shutdown;
173 ns_reg[moduleid].nr_destroy = module_destroy;
174 ns_reg[moduleid].nr_flags = NRF_REGISTERED;
212 ASSERT(ns_reg[moduleid].nr_create != NULL);
213 ASSERT(ns_reg[moduleid].nr_flags & NRF_REGISTERED);
254 if (ns_reg[moduleid].nr_shutdown != NULL && created &&
261 if ((ns_reg[moduleid].nr_flags & NRF_REGISTERED) &&
262 ns_reg[moduleid].nr_destroy != NULL && created &&
275 ns_reg[moduleid].nr_flags |= NRF_DYING;
287 ASSERT(ns_reg[moduleid].nr_flags & NRF_REGISTERED);
288 ASSERT(ns_reg[moduleid].nr_flags & NRF_DYING);
301 ns_reg[moduleid].nr_create = NULL;
302 ns_reg[moduleid].nr_shutdown = NULL;
303 ns_reg[moduleid].nr_destroy = NULL;
304 ns_reg[moduleid].nr_flags = 0;
388 if ((ns_reg[i].nr_flags == NRF_REGISTERED) &&
447 if ((ns_reg[i].nr_flags & NRF_REGISTERED) &&
448 ns_reg[i].nr_shutdown != NULL &&
541 if ((ns_reg[i].nr_flags & NRF_REGISTERED) &&
542 ns_reg[i].nr_shutdown != NULL &&
550 if ((ns_reg[i].nr_flags & NRF_REGISTERED) &&
551 ns_reg[i].nr_destroy != NULL &&
699 ASSERT(ns_reg[moduleid].nr_create != NULL);
704 result = (ns_reg[moduleid].nr_create)(stackid, ns);
759 ASSERT(ns_reg[moduleid].nr_shutdown != NULL);
765 (ns_reg[moduleid].nr_shutdown)(stackid, netstack_module);
818 ASSERT(ns_reg[moduleid].nr_destroy != NULL);
824 (ns_reg[moduleid].nr_destroy)(stackid, netstack_module);