Searched refs:ptms_inuse (Results 1 – 1 of 1) sorted by relevance
213 static size_t ptms_inuse = 0; /* # of ptys currently allocated */ variable344 if (ptms_inuse >= pt_cnt) { in pt_ttys_alloc()356 if (ptms_inuse >= min(ptms_ptymax, user_max)) { in pt_ttys_alloc()361 ptms_inuse++; in pt_ttys_alloc()377 ptms_inuse--; in pt_ttys_alloc()386 ptms_inuse--; in pt_ttys_alloc()542 ASSERT(ptms_inuse > 0); in ptms_close()544 ptms_inuse--; in ptms_close()574 DDBG("ptmopen(%d): need to grow\n", (int)ptms_inuse); in ptms_grow()