- file_type_t fo_type; /* descriptor type */
- int (*fo_read) (struct fileproc *fp, struct uio *uio,
- int flags, vfs_context_t ctx);
- int (*fo_write) (struct fileproc *fp, struct uio *uio,
- int flags, vfs_context_t ctx);
-#define FOF_OFFSET 0x00000001 /* offset supplied to vn_write */
-#define FOF_PCRED 0x00000002 /* cred from proc, not current thread */
- int (*fo_ioctl) (struct fileproc *fp, u_long com,
- caddr_t data, vfs_context_t ctx);
- int (*fo_select) (struct fileproc *fp, int which,
- void *wql, vfs_context_t ctx);
- int (*fo_close) (struct fileglob *fg, vfs_context_t ctx);
- int (*fo_kqfilter) (struct fileproc *fp, struct knote *kn,
- struct kevent_internal_s *kev, vfs_context_t ctx);
- int (*fo_drain) (struct fileproc *fp, vfs_context_t ctx);
+ file_type_t fo_type; /* descriptor type */
+ int (*fo_read) (struct fileproc *fp, struct uio *uio,
+ int flags, vfs_context_t ctx);
+ int (*fo_write) (struct fileproc *fp, struct uio *uio,
+ int flags, vfs_context_t ctx);
+#define FOF_OFFSET 0x00000001 /* offset supplied to vn_write */
+#define FOF_PCRED 0x00000002 /* cred from proc, not current thread */
+ int (*fo_ioctl)(struct fileproc *fp, u_long com,
+ caddr_t data, vfs_context_t ctx);
+ int (*fo_select) (struct fileproc *fp, int which,
+ void *wql, vfs_context_t ctx);
+ int (*fo_close) (struct fileglob *fg, vfs_context_t ctx);
+ int (*fo_kqfilter) (struct fileproc *fp, struct knote *kn,
+ struct kevent_internal_s *kev, vfs_context_t ctx);
+ int (*fo_drain) (struct fileproc *fp, vfs_context_t ctx);