Searched refs:tcl_nslots (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/cmd/mdb/common/modules/sppp/ |
H A D | sppp.c | 320 size_t tcl_nslots; member 332 mdb_free(twd, sizeof (*twd) + ((twd->tcl_nslots - 1) * in tuncl_walk_fini() 341 size_t tcl_nslots; in tuncl_walk_init() local 351 if (mdb_readvar(&tcl_nslots, "tcl_nslots") == -1) { in tuncl_walk_init() 356 if (tcl_nslots == 0) in tuncl_walk_init() 365 (tcl_nslots - 1) * sizeof (*tcl_slots), UM_NOSLEEP); in tuncl_walk_init() 368 twd->tcl_nslots = tcl_nslots; in tuncl_walk_init() 372 if (mdb_vread(twd->tcl_slots, tcl_nslots * sizeof (twd->tcl_slots[0]), in tuncl_walk_init() 395 while (twd->walkpos < twd->tcl_nslots && in tuncl_walk_step() 398 if (twd->walkpos >= twd->tcl_nslots) in tuncl_walk_step()
|
/illumos-gate/usr/src/uts/common/io/ppp/sppptun/ |
H A D | sppptun.c | 136 static size_t tcl_nslots = 0; /* Size of slot array */ variable 233 minor_t old_size = tcl_nslots; in tcl_grow() 256 tcl_nslots = new_size; in tcl_grow() 362 ASSERT(tcl->tcl_lsessid <= tcl_nslots); in tuncl_free() 392 if ((dminor >= 1) && (dminor <= tcl_nslots) && tcl_slots != NULL) { in tcl_by_minor() 2430 tcl_nslots = sppptun_init_cnt; in sppptun_tcl_init() 2431 tcl_slots = kmem_zalloc(tcl_nslots * sizeof (tuncl_t *), KM_SLEEP); in sppptun_tcl_init() 2437 tcl_minor_arena = vmem_create("sppptun_minor", (void *)1, tcl_nslots, in sppptun_tcl_init() 2486 kmem_free(tcl_slots, tcl_nslots * sizeof (tuncl_t *)); in sppptun_tcl_fini()
|