Lines Matching refs:fileproc
120 struct fileproc { struct
131 __CCT_DECLARE_CONSTRAINED_PTR_TYPES(struct fileproc, fileproc);
132 #define FILEPROC_NULL ((struct fileproc *)0)
164 int (*fo_read) (struct fileproc *fp, struct uio *uio,
166 int (*fo_write) (struct fileproc *fp, struct uio *uio,
169 int (*fo_ioctl)(struct fileproc *fp, u_long com,
171 int (*fo_select) (struct fileproc *fp, int which,
174 int (*fo_kqfilter) (struct fileproc *fp, struct knote *, struct kevent_qos_s *);
175 int (*fo_drain) (struct fileproc *fp, vfs_context_t ctx);
344 #pragma mark file descriptor entries (struct fileproc)
362 fp_get_data(struct fileproc *fp) in fp_get_data()
381 fp_get_data_volatile(struct fileproc *fp) in fp_get_data_volatile()
399 fp_set_data(struct fileproc *fp, void *fg_data) in fp_set_data()
432 fp_get_ftype(proc_t p, int fd, file_type_t ftype, int err, struct fileproc **fpp);
459 extern struct fileproc *
485 extern struct fileproc *
513 fp_close_and_unlock(proc_t p, kauth_cred_t p_cred, int fd, struct fileproc *fp, int flags);
516 int fo_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx);
517 int fo_write(struct fileproc *fp, struct uio *uio, int flags,
519 int fo_ioctl(struct fileproc *fp, u_long com, caddr_t data, vfs_context_t ctx);
520 int fo_select(struct fileproc *fp, int which, void *wql, vfs_context_t ctx);
522 int fo_drain(struct fileproc *fp, vfs_context_t ctx);
523 int fo_kqfilter(struct fileproc *fp, struct knote *kn, struct kevent_qos_s *kev);
526 int fo_no_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx);
527 int fo_no_write(struct fileproc *fp, struct uio *uio, int flags,
529 int fo_no_ioctl(struct fileproc *fp, u_long com, caddr_t data, vfs_context_t ctx);
530 int fo_no_select(struct fileproc *fp, int which, void *wql, vfs_context_t ctx);
531 int fo_no_drain(struct fileproc *fp, vfs_context_t ctx);
532 int fo_no_kqfilter(struct fileproc *, struct knote *, struct kevent_qos_s *kev);
534 int fp_tryswap(proc_t, int fd, struct fileproc *nfp);
535 int fp_drop(struct proc *p, int fd, struct fileproc *fp, int locked);
536 void fp_free(struct proc * p, int fd, struct fileproc * fp);
537 int fp_lookup(struct proc *p, int fd, struct fileproc **resultfp, int locked);
538 int fp_lookup_guarded(struct proc *p, int fd, guardid_t guard, struct fileproc **resultfp, int lock…
539 int fp_isguarded(struct fileproc *fp, u_int attribs);
540 int fp_guard_exception(proc_t p, int fd, struct fileproc *fp, u_int attribs);
548 void procfdtbl_releasefd(struct proc * p, int fd, struct fileproc * fp);
549 extern struct fileproc *fileproc_alloc_init(void);
550 extern void fileproc_free(struct fileproc *fp);
551 extern void guarded_fileproc_copy_guard(struct fileproc *ofp, struct fileproc *nfp);
552 extern void guarded_fileproc_unguard(struct fileproc *fp);
557 extern int falloc_guarded(struct proc *p, struct fileproc **fp, int *fd,
559 extern void fileproc_modify_vflags(struct fileproc *fp, fileproc_vflags_t vflags, boolean_t clearfl…
560 fileproc_vflags_t fileproc_get_vflags(struct fileproc *fp);