Home | History | Annotate | Download | only in ptyfs

Lines Matching refs:pty

90 #include <sys/pty.h>
104 * the pty, ptyfs_type, and mount point uniquely
110 ptyfs_allocvp(struct mount *mp, struct vnode **vpp, ptyfstype type, int pty)
115 key.ptk_pty = pty;
146 ptyfs_get_node(ptyfstype type, int pty)
151 ppp = &ptyfs_node_tbl[PTYFS_FILENO(type, pty) & ptyfs_node_mask];
155 if (pty == pp->ptyfs_pty && pp->ptyfs_type == type) {
163 pp->ptyfs_pty = pty;
165 pp->ptyfs_fileno = PTYFS_FILENO(type, pty);
192 * Mark this controlling pty as active.
195 ptyfs_set_active(struct mount *mp, int pty)
199 KASSERT(pty >= 0);
201 if (pty >= pmnt->pmnt_bitmap_size * NBBY) {
205 nsize = roundup(howmany(pty + 1, NBBY), 64);
208 if (pty < pmnt->pmnt_bitmap_size * NBBY) {
226 setbit(pmnt->pmnt_bitmap, pty);
231 * Mark this controlling pty as inactive.
234 ptyfs_clr_active(struct mount *mp, int pty)
238 KASSERT(pty >= 0);
240 if (pty >= 0 && pty < pmnt->pmnt_bitmap_size * NBBY)
241 clrbit(pmnt->pmnt_bitmap, pty);
246 * Lookup the next active controlling pty greater or equal "pty".
250 ptyfs_next_active(struct mount *mp, int pty)
254 KASSERT(pty >= 0);
256 while (pty < pmnt->pmnt_bitmap_size * NBBY) {
257 if (isset(pmnt->pmnt_bitmap, pty)) {
259 return pty;
261 pty++;