| /xnu-8020.101.4/bsd/sys/ |
| H A D | file_internal.h | 119 struct fileproc { struct 131 #define FILEPROC_NULL ((struct fileproc *)0) argument 163 int (*fo_read) (struct fileproc *fp, struct uio *uio, 165 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); 319 #pragma mark file descriptor entries (struct fileproc) 337 fp_get_data(struct fileproc *fp) in fp_get_data() [all …]
|
| H A D | filedesc.h | 137 …struct fileproc **XNU_PTRAUTH_SIGNED_PTR("filedesc.fd_ofiles") fd_ofiles; /* (L) file structures… 207 struct fileproc *fdti_fp; 417 extern int falloc(proc_t p, struct fileproc **resultfp, 420 typedef void (*fp_initfn_t)(struct fileproc *, void *ctx); 421 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 | 101 struct fileproc; 103 int fp_getfvp(struct proc *p, int fd, struct fileproc **resultfp, struct vnode **resultvp);
|
| H A D | event.h | 757 struct fileproc *kn_fp; 840 struct fileproc *kec_fp; /* fileproc to pass to fp_drop or NULL */
|
| H A D | socketvar.h | 938 extern int soo_ioctl(struct fileproc *, u_long, caddr_t, vfs_context_t); 940 extern int soo_select(struct fileproc *, int, void *, vfs_context_t); 941 extern int soo_kqfilter(struct fileproc *, struct knote *, struct kevent_qos_s *);
|
| /xnu-8020.101.4/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); 349 procfdtbl_releasefd(struct proc * p, int fd, struct fileproc * fp) in procfdtbl_releasefd() 453 struct fileproc *nfp; in finishdup() 454 struct fileproc *ofp; in finishdup() 588 struct fileproc **fpp; in fdt_available_locked() 612 struct fileproc *fp; in fdt_next() 638 struct fileproc *fp; in fdt_prev() 708 struct fileproc *fp = fdp->fd_ofiles[i]; in fdt_exec() 768 struct fileproc **ofiles; in fdt_fork() 873 struct fileproc *ofp, *nfp; in fdt_fork() [all …]
|
| H A D | kern_guarded.c | 60 extern int dofilewrite(vfs_context_t ctx, struct fileproc *fp, 63 extern int do_uiowrite(struct proc *p, struct fileproc *fp, uio_t uio, int flags, user_ssize_t *ret… 98 guarded_fileproc_init(struct fileproc *fp, void *initarg) in guarded_fileproc_init() 113 guarded_fileproc_unguard(struct fileproc *fp) in guarded_fileproc_unguard() 125 struct fileproc **fpp) in fp_lookup_guarded_locked() 128 struct fileproc *fp; in fp_lookup_guarded_locked() 150 struct fileproc **fpp, int locked) in fp_lookup_guarded() 177 fp_isguarded(struct fileproc *fp, u_int attrs) in fp_isguarded() 185 fp_guard_exception(proc_t p, int fd, struct fileproc *fp, u_int flavor) in fp_guard_exception() 412 struct fileproc *fp; in guarded_close_np() [all …]
|
| H A D | sys_generic.c | 176 int do_uiowrite(struct proc *p, struct fileproc *fp, uio_t uio, int flags, user_ssize_t *retval); 178 __private_extern__ int dofileread(vfs_context_t ctx, struct fileproc *fp, 181 __private_extern__ int dofilewrite(vfs_context_t ctx, struct fileproc *fp, 184 static int preparefileread(struct proc *p, struct fileproc **fp_ret, int fd, int check_for_vnode); 202 valid_for_random_access(struct fileproc *fp) in valid_for_random_access() 240 struct fileproc *fp; in read_nocancel() 280 struct fileproc *fp = NULL; /* fp set by preparefileread() */ in pread_nocancel() 318 preparefileread(struct proc *p, struct fileproc **fp_ret, int fd, int check_for_pread) in preparefileread() 321 struct fileproc *fp; in preparefileread() 361 dofileread(vfs_context_t ctx, struct fileproc *fp, in dofileread() [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 | 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 | 188 static int __attribute__ ((noinline)) pid_vnodeinfo(vnode_t vp, struct fileproc * fp, proc_t proc, … 189 static int __attribute__ ((noinline)) pid_vnodeinfopath(vnode_t vp, struct fileproc * fp, proc_t pr… 190 static int __attribute__ ((noinline)) pid_socketinfo(socket_t so, struct fileproc *fp, proc_t proc,… 191 static int __attribute__ ((noinline)) pid_channelinfo(struct kern_channel *chan, struct fileproc *f… 192 static int __attribute__ ((noinline)) pid_pseminfo(struct psemnode * psem, struct fileproc * fp, pr… 193 static int __attribute__ ((noinline)) pid_pshminfo(struct pshmnode * pshm, struct fileproc * fp, pr… 194 static int __attribute__ ((noinline)) pid_pipeinfo(struct pipe * p, struct fileproc * fp, proc_t pr… 195 static int __attribute__ ((noinline)) pid_kqueueinfo(struct kqueue * kq, struct fileproc * fp, proc… 201 static void fill_fileinfo(struct fileproc *fp, proc_t proc, struct proc_fileinfo * finfo); 477 struct fileproc *fp; in proc_fdlist_internal() [all …]
|
| 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-8020.101.4/bsd/skywalk/nexus/ |
| H A D | nexus_syscalls.c | 72 struct fileproc *fp = NULL; in __nexus_open() 160 struct fileproc *fp; in __nexus_register() 238 struct fileproc *fp; in __nexus_deregister() 283 struct fileproc *fp; in __nexus_create() 350 struct fileproc *fp; in __nexus_destroy() 396 struct fileproc *fp; in __nexus_get_opt() 459 struct fileproc *fp; in __nexus_set_opt()
|
| H A D | nexus_var.h | 79 struct fileproc *nxctl_fp; 493 extern struct nxctl *nxctl_create(struct proc *, struct fileproc *,
|
| /xnu-8020.101.4/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-8020.101.4/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-8020.101.4/bsd/vfs/ |
| H A D | vfs_vnops.c | 118 static int vn_ioctl(struct fileproc *fp, u_long com, caddr_t data, 120 static int vn_read(struct fileproc *fp, struct uio *uio, int flags, 122 static int vn_write(struct fileproc *fp, struct uio *uio, int flags, 124 static int vn_select( struct fileproc *fp, int which, void * wql, 126 static int vn_kqfilter(struct fileproc *fp, struct knote *kn, 1110 vn_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) in vn_read() 1164 vn_write(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) in vn_write() 1620 vn_ioctl(struct fileproc *fp, u_long com, caddr_t data, vfs_context_t ctx) in vn_ioctl() 1725 vn_select(struct fileproc *fp, int which, void *wql, __unused vfs_context_t ctx) in vn_select() 1870 vn_kqfilter(struct fileproc *fp, struct knote *kn, struct kevent_qos_s *kev) in vn_kqfilter() [all …]
|
| H A D | vfs_fsevents.c | 1783 fseventsf_read(struct fileproc *fp, struct uio *uio, in fseventsf_read() 1810 fseventsf_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, vfs_context_t ctx) in fseventsf_ioctl() 1941 fseventsf_select(struct fileproc *fp, int which, __unused void *wql, vfs_context_t ctx) in fseventsf_select() 1968 fseventsf_stat(__unused struct fileproc *fp, __unused struct stat *sb, __unused vfs_context_t ctx) in fseventsf_stat() 2119 fseventsf_kqfilter(struct fileproc *fp, struct knote *kn, in fseventsf_kqfilter() 2142 fseventsf_drain(struct fileproc *fp, __unused vfs_context_t ctx) in fseventsf_drain() 2385 struct fileproc *f; in fseventsioctl()
|
| /xnu-8020.101.4/osfmk/vm/ |
| H A D | vm_shared_region.h | 256 struct fileproc *fp;
|
| /xnu-8020.101.4/bsd/miscfs/devfs/ |
| H A D | devfs_fdesc_support.c | 385 struct fileproc *fp; in fdesc_attr() 494 struct fileproc *fp; in fdesc_setattr()
|
| /xnu-8020.101.4/security/ |
| H A D | mac_framework.h | 93 struct fileproc; 587 void psem_label_associate(struct fileproc *fp, struct vnode *vp, struct vfs_context *ctx); 588 void pshm_label_associate(struct fileproc *fp, struct vnode *vp, struct vfs_context *ctx);
|
| /xnu-8020.101.4/bsd/security/audit/ |
| H A D | audit.h | 251 struct fileproc *fp);
|