Lines Matching refs:ptms_slots
33 * pt's are put in the global ptms_slots array indexed by minor numbers.
44 * ptms_slots arrays are allocated via kmem_alloc().
106 * pseudo-terminal and puts a pointer to it into ptms_slots array.
154 * pt_init_cnt: Initial size of ptms_slots array. Set to NPTY_INITIAL.
210 static struct pt_ttys **ptms_slots = NULL; /* Slots for actual pt structures */
228 * pointer for ptms_slots array, one pt_ttys structure and one empty message
261 * Allocate ptms_slots array and kmem cache for pt_ttys. This initialization is
270 if (ptms_slots == NULL) {
271 ptms_slots = kmem_zalloc(pt_init_cnt *
394 ASSERT(ptms_slots[dminor - 1] == NULL);
395 ptms_slots[dminor - 1] = pt;
412 if ((dminor >= 1) && (dminor <= ptms_nslots) && ptms_slots != NULL)
413 pt = ptms_slots[dminor - 1];
541 ASSERT(ptms_slots[pt->pt_minor - 1] == pt);
548 ptms_slots[pt->pt_minor - 1] = NULL;
568 struct pt_ttys **ptms_old = ptms_slots;
594 ptms_slots = ptms_new;