Lines Matching refs:fp
128 struct file *fp; in procdesc_find() local
131 error = fget(td, fd, rightsp, &fp); in procdesc_find()
134 if (fp->f_type != DTYPE_PROCDESC) { in procdesc_find()
138 pd = fp->f_data; in procdesc_find()
147 fdrop(fp, td); in procdesc_find()
173 struct file *fp; in kern_pdgetpid() local
176 error = fget(td, fd, rightsp, &fp); in kern_pdgetpid()
179 if (fp->f_type != DTYPE_PROCDESC) { in kern_pdgetpid()
183 *pidp = procdesc_pid(fp); in kern_pdgetpid()
185 fdrop(fp, td); in kern_pdgetpid()
253 procdesc_finit(struct procdesc *pdp, struct file *fp) in procdesc_finit() argument
256 finit(fp, FREAD | FWRITE, DTYPE_PROCDESC, pdp, &procdesc_ops); in procdesc_finit()
351 procdesc_close(struct file *fp, struct thread *td) in procdesc_close() argument
356 KASSERT(fp->f_type == DTYPE_PROCDESC, ("procdesc_close: !procdesc")); in procdesc_close()
358 pd = fp->f_data; in procdesc_close()
359 fp->f_ops = &badfileops; in procdesc_close()
360 fp->f_data = NULL; in procdesc_close()
424 procdesc_poll(struct file *fp, int events, struct ucred *active_cred, in procdesc_poll() argument
431 pd = fp->f_data; in procdesc_poll()
494 procdesc_kqfilter(struct file *fp, struct knote *kn) in procdesc_kqfilter() argument
498 pd = fp->f_data; in procdesc_kqfilter()
511 procdesc_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, in procdesc_stat() argument
523 pd = fp->f_data; in procdesc_stat()
551 procdesc_fill_kinfo(struct file *fp, struct kinfo_file *kif, in procdesc_fill_kinfo() argument
557 pdp = fp->f_data; in procdesc_fill_kinfo()