Lines Matching defs:nts
41 net_find(const char *protocol, neti_stack_t *nts)
46 ASSERT(nts != NULL);
48 LIST_FOREACH(n, &nts->nts_netd_head, netd_list) {
68 neti_stack_t *nts;
72 nts = net_getnetistackbyid(id);
73 if (nts == NULL)
80 new->netd_stack = nts;
83 mutex_enter(&nts->nts_lock);
84 n = net_find(info->netp_name, nts);
86 mutex_exit(&nts->nts_lock);
91 if (LIST_EMPTY(&nts->nts_netd_head)) {
92 LIST_INSERT_HEAD(&nts->nts_netd_head, new, netd_list);
94 LIST_INSERT_AFTER(LIST_FIRST(&nts->nts_netd_head),
97 mutex_exit(&nts->nts_lock);
105 neti_stack_t *nts;
109 nts = info->netd_stack;
110 ASSERT(nts != NULL);
112 mutex_enter(&nts->nts_lock);
115 mutex_exit(&nts->nts_lock);
125 neti_stack_t *nts;
130 nts = net_getnetistackbyid(netid);
131 if (nts == NULL)
134 mutex_enter(&nts->nts_lock);
135 nd = net_find(protocol, nts);
138 mutex_exit(&nts->nts_lock);
174 neti_stack_t *nts;
176 nts = net_getnetistackbyid(netid);
177 ASSERT(nts != NULL);
182 mutex_enter(&nts->nts_lock);
183 LIST_FOREACH(n, &nts->nts_netd_head, netd_list) {
206 mutex_exit(&nts->nts_lock);