| /xnu-8792.41.9/bsd/sys/ |
| H A D | file_internal.h | 120 struct fileproc { struct 131 __CCT_DECLARE_CONSTRAINED_PTR_TYPES(struct fileproc, fileproc); argument 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, 170 int (*fo_ioctl)(struct fileproc *fp, u_long com, 172 int (*fo_select) (struct fileproc *fp, int which, 175 int (*fo_kqfilter) (struct fileproc *fp, struct knote *, struct kevent_qos_s *); 176 int (*fo_drain) (struct fileproc *fp, vfs_context_t ctx); 320 #pragma mark file descriptor entries (struct fileproc) [all …]
|
| H A D | filedesc.h | 138 …struct fileproc **XNU_PTRAUTH_SIGNED_PTR("filedesc.fd_ofiles") fd_ofiles; /* (L) file structures… 207 struct fileproc *fdti_fp; 426 extern int falloc(proc_t p, struct fileproc **resultfp, 429 typedef void (*fp_initfn_t)(struct fileproc *, void *ctx); 430 extern int falloc_withinit(proc_t p, struct fileproc **resultfp,
|
| H A D | mman.h | 297 struct fileproc; 299 struct fileproc *fp, off_t pageoff); 304 struct fileproc; 305 int pshm_truncate(struct proc *p, struct fileproc *fp, int fd, off_t length, int32_t *retval);
|
| H A D | file.h | 99 struct fileproc; 101 int fp_getfvp(struct proc *p, int fd, struct fileproc **resultfp, struct vnode **resultvp);
|
| H A D | event.h | 760 struct fileproc *kn_fp; 843 struct fileproc *kec_fp; /* fileproc to pass to fp_drop or NULL */
|
| H A D | socketvar.h | 969 extern int soo_ioctl(struct fileproc *, u_long, caddr_t, vfs_context_t); 971 extern int soo_select(struct fileproc *, int, void *, vfs_context_t); 972 extern int soo_kqfilter(struct fileproc *, struct knote *, struct kevent_qos_s *);
|
| /xnu-8792.41.9/bsd/kern/ |
| H A D | sys_socket.c | 95 static int soo_read(struct fileproc *, struct uio *, int, vfs_context_t ctx); 96 static int soo_write(struct fileproc *, struct uio *, int, vfs_context_t ctx); 98 static int soo_drain(struct fileproc *, vfs_context_t ctx); 113 soo_read(struct fileproc *fp, struct uio *uio, __unused int flags, in soo_read() 136 soo_write(struct fileproc *fp, struct uio *uio, __unused int flags, in soo_write() 287 soo_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, vfs_context_t ctx) in soo_ioctl() 301 soo_select(struct fileproc *fp, int which, void *wql, vfs_context_t ctx) in soo_select() 425 soo_drain(struct fileproc *fp, __unused vfs_context_t ctx) in soo_drain()
|
| H A D | kern_descrip.c | 155 ZONE_DEFINE_ID(ZONE_ID_FILEPROC, "fileproc", struct fileproc, ZC_ZFREE_CLEARMEM); 410 procfdtbl_releasefd(struct proc * p, int fd, struct fileproc * fp) in procfdtbl_releasefd() 514 struct fileproc *nfp; in finishdup() 515 struct fileproc *ofp; in finishdup() 649 struct fileproc **fpp; in fdt_available_locked() 673 struct fileproc *fp; in fdt_next() 699 struct fileproc *fp; in fdt_prev() 774 struct fileproc *fp = fdp->fd_ofiles[i]; in fdt_exec() 839 struct fileproc **ofiles; in fdt_fork() 943 struct fileproc *ofp, *nfp; in fdt_fork() [all …]
|
| H A D | kern_guarded.c | 102 guarded_fileproc_init(struct fileproc *fp, void *initarg) in guarded_fileproc_init() 117 guarded_fileproc_copy_guard(struct fileproc *ofp, struct fileproc *nfp) in guarded_fileproc_copy_guard() 132 guarded_fileproc_unguard(struct fileproc *fp) in guarded_fileproc_unguard() 144 struct fileproc **fpp) in fp_lookup_guarded_locked() 147 struct fileproc *fp; in fp_lookup_guarded_locked() 169 struct fileproc **fpp, int locked) in fp_lookup_guarded() 196 fp_isguarded(struct fileproc *fp, u_int attrs) in fp_isguarded() 204 fp_guard_exception(proc_t p, int fd, struct fileproc *fp, u_int flavor) in fp_guard_exception() 431 struct fileproc *fp; in guarded_close_np() 513 struct fileproc *fp; in change_fdguard_np() [all …]
|
| H A D | sys_pipe.c | 171 static int pipe_read(struct fileproc *fp, struct uio *uio, 173 static int pipe_write(struct fileproc *fp, struct uio *uio, 176 static int pipe_select(struct fileproc *fp, int which, void * wql, 178 static int pipe_kqfilter(struct fileproc *fp, struct knote *kn, 180 static int pipe_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, 182 static int pipe_drain(struct fileproc *fp, vfs_context_t ctx); 394 struct fileproc *rf, *wf; in pipe() 749 pipe_read(struct fileproc *fp, struct uio *uio, __unused int flags, in pipe_read() 911 pipe_write(struct fileproc *fp, struct uio *uio, __unused int flags, in pipe_write() 1187 pipe_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, in pipe_ioctl() [all …]
|
| H A D | sys_generic.c | 174 int do_uiowrite(struct proc *p, struct fileproc *fp, uio_t uio, int flags, user_ssize_t *retval); 175 __private_extern__ int dofileread(vfs_context_t ctx, struct fileproc *fp, 178 __private_extern__ int dofilewrite(vfs_context_t ctx, struct fileproc *fp, 181 static int preparefileread(struct proc *p, struct fileproc **fp_ret, int fd, int check_for_vnode); 205 valid_for_random_access(struct fileproc *fp) in valid_for_random_access() 233 preparefileread(struct proc *p, struct fileproc **fp_ret, int fd, int check_for_pread) in preparefileread() 236 struct fileproc *fp; in preparefileread() 270 fp_readv(vfs_context_t ctx, struct fileproc *fp, uio_t uio, int flags, in fp_readv() 307 dofileread(vfs_context_t ctx, struct fileproc *fp, in dofileread() 336 struct fileproc *fp = NULL; in readv_internal() [all …]
|
| H A D | posix_sem.c | 381 struct fileproc *fp = NULL; in sem_open() 785 struct fileproc *fp; in sem_close() 812 struct fileproc *fp; in sem_wait_nocancel() 870 struct fileproc *fp; in sem_trywait() 934 struct fileproc *fp; in sem_post() 1092 psem_label_associate(struct fileproc *fp, struct vnode *vp, vfs_context_t ctx) in psem_label_associate()
|
| H A D | proc_info.c | 190 static int __attribute__ ((noinline)) pid_vnodeinfo(vnode_t vp, struct fileproc * fp, proc_t proc, … 191 static int __attribute__ ((noinline)) pid_vnodeinfopath(vnode_t vp, struct fileproc * fp, proc_t pr… 192 static int __attribute__ ((noinline)) pid_socketinfo(socket_t so, struct fileproc *fp, proc_t proc,… 193 static int __attribute__ ((noinline)) pid_channelinfo(struct kern_channel *chan, struct fileproc *f… 194 static int __attribute__ ((noinline)) pid_pseminfo(struct psemnode * psem, struct fileproc * fp, pr… 195 static int __attribute__ ((noinline)) pid_pshminfo(struct pshmnode * pshm, struct fileproc * fp, pr… 196 static int __attribute__ ((noinline)) pid_pipeinfo(struct pipe * p, struct fileproc * fp, proc_t pr… 197 static int __attribute__ ((noinline)) pid_kqueueinfo(struct kqueue * kq, struct fileproc * fp, proc… 206 static void fill_fileinfo(struct fileproc *fp, proc_t proc, struct proc_fileinfo * finfo); 489 struct fileproc *fp; in proc_fdlist_internal() [all …]
|
| H A D | mach_loader.h | 96 struct fileproc* dynlinker_fp;
|
| H A D | posix_shm.c | 343 struct fileproc *fp = NULL; in shm_open() 537 struct fileproc *fp, in pshm_truncate() 737 struct fileproc *fp, in pshm_mmap() 1124 pshm_label_associate(struct fileproc *fp, struct vnode *vp, vfs_context_t ctx) in pshm_label_associate()
|
| H A D | kern_aio.c | 271 extern int dofileread(vfs_context_t ctx, struct fileproc *fp, 274 extern int dofilewrite(vfs_context_t ctx, struct fileproc *fp, 1798 struct fileproc *fp; in aio_validate() 1965 struct fileproc *fp; in do_aio_read() 1999 struct fileproc *fp; in do_aio_write() 2070 struct fileproc *fp; in do_aio_fsync()
|
| /xnu-8792.41.9/bsd/skywalk/nexus/ |
| H A D | nexus_syscalls.c | 39 static int nxop_ioctl(struct fileproc *, u_long, caddr_t, vfs_context_t); 54 nxop_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, vfs_context_t ctx) in nxop_ioctl() 86 struct fileproc *fp = NULL; in __nexus_open() 174 struct fileproc *fp; in __nexus_register() 252 struct fileproc *fp; in __nexus_deregister() 297 struct fileproc *fp; in __nexus_create() 364 struct fileproc *fp; in __nexus_destroy() 410 struct fileproc *fp; in __nexus_get_opt() 473 struct fileproc *fp; in __nexus_set_opt()
|
| H A D | nexus_var.h | 79 struct fileproc *nxctl_fp; 495 extern struct nxctl *nxctl_create(struct proc *, struct fileproc *,
|
| /xnu-8792.41.9/bsd/skywalk/channel/ |
| H A D | channel_syscalls.c | 40 static int chop_select(struct fileproc *, int, void *, vfs_context_t); 42 static int chop_kqfilter(struct fileproc *, struct knote *, struct kevent_qos_s *); 62 chop_select(struct fileproc *fp, int which, void *wql, vfs_context_t ctx) in chop_select() 114 chop_kqfilter(struct fileproc *fp, struct knote *kn, struct kevent_qos_s *kev) in chop_kqfilter() 125 struct fileproc *fp = NULL; in __channel_open() 295 struct fileproc *fp; in __channel_get_info() 364 struct fileproc *fp; in __channel_sync() 669 struct fileproc *fp; in __channel_get_opt() 733 struct fileproc *fp; in __channel_set_opt()
|
| /xnu-8792.41.9/bsd/miscfs/fifofs/ |
| H A D | fifo_vnops.c | 395 struct fileproc filetmp; in fifo_ioctl() 402 bzero(&filetmp, sizeof(struct fileproc)); in fifo_ioctl() 428 struct fileproc filetmp; in fifo_select() 432 bzero(&filetmp, sizeof(struct fileproc)); in fifo_select()
|
| /xnu-8792.41.9/bsd/vfs/ |
| H A D | vfs_vnops.c | 119 static int vn_ioctl(struct fileproc *fp, u_long com, caddr_t data, 121 static int vn_read(struct fileproc *fp, struct uio *uio, int flags, 123 static int vn_write(struct fileproc *fp, struct uio *uio, int flags, 125 static int vn_select( struct fileproc *fp, int which, void * wql, 127 static int vn_kqfilter(struct fileproc *fp, struct knote *kn, 1152 vn_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) in vn_read() 1206 vn_write(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) in vn_write() 1675 vn_ioctl(struct fileproc *fp, u_long com, caddr_t data, vfs_context_t ctx) in vn_ioctl() 1786 vn_select(struct fileproc *fp, int which, void *wql, __unused vfs_context_t ctx) in vn_select() 1937 vn_kqfilter(struct fileproc *fp, struct knote *kn, struct kevent_qos_s *kev) in vn_kqfilter() [all …]
|
| H A D | vfs_fsevents.c | 2057 fseventsf_read(struct fileproc *fp, struct uio *uio, in fseventsf_read() 2084 fseventsf_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, vfs_context_t ctx) in fseventsf_ioctl() 2215 fseventsf_select(struct fileproc *fp, int which, __unused void *wql, vfs_context_t ctx) in fseventsf_select() 2242 fseventsf_stat(__unused struct fileproc *fp, __unused struct stat *sb, __unused vfs_context_t ctx) in fseventsf_stat() 2393 fseventsf_kqfilter(struct fileproc *fp, struct knote *kn, in fseventsf_kqfilter() 2416 fseventsf_drain(struct fileproc *fp, __unused vfs_context_t ctx) in fseventsf_drain() 2657 struct fileproc *f; in fseventsioctl()
|
| /xnu-8792.41.9/osfmk/vm/ |
| H A D | vm_shared_region.h | 284 struct fileproc *fp;
|
| /xnu-8792.41.9/bsd/miscfs/devfs/ |
| H A D | devfs_fdesc_support.c | 391 struct fileproc *fp; in fdesc_attr() 500 struct fileproc *fp; in fdesc_setattr()
|
| /xnu-8792.41.9/security/ |
| H A D | mac_framework.h | 93 struct fileproc; 593 void psem_label_associate(struct fileproc *fp, struct vnode *vp, struct vfs_context *ctx); 594 void pshm_label_associate(struct fileproc *fp, struct vnode *vp, struct vfs_context *ctx);
|