sys/kern/tty_ptm.c
351
if ((error = pty_alloc_master(l, &fd, &ttydev, mp, flag)) != 0)
sys/kern/tty_ptm.c
400
if ((error = pty_alloc_master(l, &cfd, &newdev, mp, 0)) != 0)
sys/kern/tty_ptm.c
90
static int pty_alloc_master(struct lwp *, int *, dev_t *, struct mount *, int);