Lines Matching defs:ss
1562 linkcycle(stdata_t *upstp, stdata_t *lostp, str_stack_t *ss)
1576 for (i = 0; i < ss->ss_devcnt; i++) {
1577 np = &ss->ss_mux_nodes[i];
1582 np = &ss->ss_mux_nodes[lomaj];
1625 findlinks(stdata_t *stp, int index, int type, str_stack_t *ss)
1644 mnp = &ss->ss_mux_nodes[getmajor(stp->sd_vnode->v_rdev)];
1743 str_stack_t *ss;
1768 ss = ns->netstack_str;
1769 ASSERT(ss != NULL);
1771 if (getmajor(stp->sd_vnode->v_rdev) >= ss->ss_devcnt) {
1772 netstack_rele(ss->ss_netstack);
1778 netstack_rele(ss->ss_netstack);
1794 (getmajor(stpdown->sd_vnode->v_rdev) >= ss->ss_devcnt)) ||
1795 linkcycle(stp, stpdown, ss)) {
1797 netstack_rele(ss->ss_netstack);
1927 netstack_rele(ss->ss_netstack);
1948 mux_addedge(stp, stpdown, linkp->li_lblk.l_index, ss);
1973 netstack_rele(ss->ss_netstack);
2010 str_stack_t *ss)
2068 mux_rmvedge(stp, linkp->li_lblk.l_index, ss);
2256 munlinkall(stdata_t *stp, int flag, cred_t *crp, int *rvalp, str_stack_t *ss)
2262 while (linkp = findlinks(stp, 0, flag, ss)) {
2266 if (error = munlink(stp, linkp, flag, crp, rvalp, ss))
2279 mux_addedge(stdata_t *upstp, stdata_t *lostp, int muxid, str_stack_t *ss)
2288 np = &ss->ss_mux_nodes[upmaj];
2312 ep->me_nodep = &ss->ss_mux_nodes[lomaj];
2320 mux_rmvedge(stdata_t *upstp, int muxid, str_stack_t *ss)
2328 np = &ss->ss_mux_nodes[upmaj];
8706 str_stack_t *ss;
8709 ss = (str_stack_t *)kmem_zalloc(sizeof (*ss), KM_SLEEP);
8710 ss->ss_netstack = ns;
8715 sad_initspace(ss);
8720 ss->ss_devcnt = devcnt; /* In case it should change before free */
8721 ss->ss_mux_nodes = kmem_zalloc((sizeof (struct mux_node) *
8722 ss->ss_devcnt), KM_SLEEP);
8723 for (i = 0; i < ss->ss_devcnt; i++)
8724 ss->ss_mux_nodes[i].mn_imaj = i;
8725 return (ss);
8735 str_stack_t *ss = (str_stack_t *)arg;
8743 for (i = 0; i < ss->ss_devcnt; i++) {
8751 ep = ss->ss_mux_nodes[i].mn_outp;
8780 sad_freespace(ss);
8782 kmem_free(ss->ss_mux_nodes, sizeof (struct mux_node) * ss->ss_devcnt);
8783 ss->ss_mux_nodes = NULL;
8793 str_stack_t *ss = (str_stack_t *)arg;
8795 kmem_free(ss, sizeof (*ss));