Lines Matching defs:fp
737 * descriptor to its new self. This is done with fdclone(): it fills the fp
755 file_t *fp;
758 if ((error = fd_allocfile(&fp, &fd)) != 0)
762 fd_abort(curproc, fp, fd);
768 return fd_clone(fp, fd, FREAD|FWRITE, &tap_fileops,
802 tap_fops_close(file_t *fp)
804 int unit = (intptr_t)fp->f_data;
871 tap_fops_read(file_t *fp, off_t *offp, struct uio *uio,
877 error = tap_dev_read((intptr_t)fp->f_data, uio, flags);
968 tap_fops_stat(file_t *fp, struct stat *st)
972 int unit = (uintptr_t)fp->f_data;
987 st->st_uid = kauth_cred_geteuid(fp->f_cred);
988 st->st_gid = kauth_cred_getegid(fp->f_cred);
1001 tap_fops_write(file_t *fp, off_t *offp, struct uio *uio,
1007 error = tap_dev_write((intptr_t)fp->f_data, uio, flags);
1074 tap_fops_ioctl(file_t *fp, u_long cmd, void *data)
1076 return tap_dev_ioctl((intptr_t)fp->f_data, cmd, data, curlwp);
1145 tap_fops_poll(file_t *fp, int events)
1147 return tap_dev_poll((intptr_t)fp->f_data, events, curlwp);
1194 tap_fops_kqfilter(file_t *fp, struct knote *kn)
1196 return tap_dev_kqfilter((intptr_t)fp->f_data, kn);