Lines Matching defs:fp

111 ptsdev_read(struct file *fp, struct uio *uio, struct ucred *active_cred,
114 struct tty *tp = fp->f_data;
170 if (fp->f_flag & O_NONBLOCK) {
185 ptsdev_write(struct file *fp, struct uio *uio, struct ucred *active_cred,
188 struct tty *tp = fp->f_data;
229 if (fp->f_flag & O_NONBLOCK) {
258 ptsdev_ioctl(struct file *fp, u_long cmd, void *data,
261 struct tty *tp = fp->f_data;
376 error = tty_ioctl(tp, cmd, data, fp->f_flag, td);
385 ptsdev_poll(struct file *fp, int events, struct ucred *active_cred,
388 struct tty *tp = fp->f_data;
442 struct file *fp = kn->kn_fp;
443 struct tty *tp = fp->f_data;
452 struct file *fp = kn->kn_fp;
453 struct tty *tp = fp->f_data;
468 struct file *fp = kn->kn_fp;
469 struct tty *tp = fp->f_data;
478 struct file *fp = kn->kn_fp;
479 struct tty *tp = fp->f_data;
503 ptsdev_kqfilter(struct file *fp, struct knote *kn)
505 struct tty *tp = fp->f_data;
530 ptsdev_stat(struct file *fp, struct stat *sb, struct ucred *active_cred)
532 struct tty *tp = fp->f_data;
566 ptsdev_close(struct file *fp, struct thread *td)
568 struct tty *tp = fp->f_data;
580 if (fp->f_vnode != NULL)
581 return (vnops.fo_close(fp, td));
587 ptsdev_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp)
592 tp = fp->f_data;
731 pts_alloc(int fflags, struct thread *td, struct file *fp)
777 finit(fp, fflags, DTYPE_PTS, tp, &ptsdev_ops);
784 pts_alloc_external(int fflags, struct thread *td, struct file *fp,
824 finit(fp, fflags, DTYPE_PTS, tp, &ptsdev_ops);
834 struct file *fp;
843 error = falloc(td, &fp, &fd, uap->flags);
848 error = pts_alloc(FFLAGS(uap->flags & O_ACCMODE), td, fp);
850 fdclose(td, fp, fd);
851 fdrop(fp, td);
857 fdrop(fp, td);