Home
last modified time | relevance | path

Searched refs:fileproc (Results 1 – 25 of 52) sorted by relevance

123

/xnu-11215.1.10/bsd/sys/
H A Dfile_internal.h120 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)
[all …]
H A Dmman.h300 struct fileproc;
307 struct fileproc *fp,
317 struct fileproc;
318 int pshm_truncate(struct proc *p, struct fileproc *fp, int fd, off_t length, int32_t *retval);
H A Dfiledesc.h143 …struct fileproc **XNU_PTRAUTH_SIGNED_PTR("filedesc.fd_ofiles") fd_ofiles; /* (L) file structures…
213 struct fileproc *fdti_fp;
432 typedef void (*fp_initfn_t)(struct fileproc *, void *ctx);
437 struct fileproc **resultfp,
H A Dfile.h99 struct fileproc;
101 int fp_getfvp(struct proc *p, int fd, struct fileproc **resultfp, struct vnode **resultvp);
H A Devent_private.h456 struct fileproc *XNU_PTRAUTH_SIGNED_PTR("knote.fp") kn_fp;
546 struct fileproc *kec_fp; /* fileproc to pass to fp_drop or NULL */
H A Dsocketvar.h1002 extern int soo_ioctl(struct fileproc *, u_long cmd,
1005 extern int soo_select(struct fileproc *, int, void *, vfs_context_t);
1006 extern int soo_kqfilter(struct fileproc *, struct knote *, struct kevent_qos_s *);
/xnu-11215.1.10/bsd/kern/
H A Dsys_socket.c95 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 __sized_by(IOCPARM_LEN(cmd)) data, vfs_context_t… 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 Dkern_descrip.c155 ZONE_DEFINE_ID(ZONE_ID_FILEPROC, "fileproc", struct fileproc, ZC_ZFREE_CLEARMEM);
419 procfdtbl_releasefd(struct proc * p, int fd, struct fileproc * fp) in procfdtbl_releasefd()
529 struct fileproc *nfp; in finishdup()
530 struct fileproc *ofp; in finishdup()
663 struct fileproc **fpp; in fdt_available_locked()
687 struct fileproc *fp; in fdt_next()
713 struct fileproc *fp; in fdt_prev()
788 struct fileproc *fp = fdp->fd_ofiles[i]; in fdt_exec()
853 struct fileproc **ofiles; in fdt_fork()
943 ofiles = kalloc_type(struct fileproc *, n_files, Z_WAITOK | Z_ZERO); in fdt_fork()
[all …]
H A Dkern_guarded.c100 guarded_fileproc_init(struct fileproc *fp, void *initarg) in guarded_fileproc_init()
115 guarded_fileproc_copy_guard(struct fileproc *ofp, struct fileproc *nfp) in guarded_fileproc_copy_guard()
130 guarded_fileproc_unguard(struct fileproc *fp) in guarded_fileproc_unguard()
142 struct fileproc **fpp) in fp_lookup_guarded_locked()
145 struct fileproc *fp; in fp_lookup_guarded_locked()
167 struct fileproc **fpp, int locked) in fp_lookup_guarded()
194 fp_isguarded(struct fileproc *fp, u_int attrs) in fp_isguarded()
202 fp_guard_exception(proc_t p, int fd, struct fileproc *fp, u_int flavor) in fp_guard_exception()
438 struct fileproc *fp; in guarded_close_np()
523 struct fileproc *fp; in change_fdguard_np()
[all …]
H A Dsys_pipe.c171 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 Dsys_generic.c166 int do_uiowrite(struct proc *p, struct fileproc *fp, uio_t uio, int flags, user_ssize_t *retval);
167 __private_extern__ int dofileread(vfs_context_t ctx, struct fileproc *fp,
170 __private_extern__ int dofilewrite(vfs_context_t ctx, struct fileproc *fp,
173 static int preparefileread(struct proc *p, struct fileproc **fp_ret, int fd, int check_for_vnode);
197 valid_for_random_access(struct fileproc *fp) in valid_for_random_access()
225 preparefileread(struct proc *p, struct fileproc **fp_ret, int fd, int check_for_pread) in preparefileread()
228 struct fileproc *fp; in preparefileread()
262 fp_readv(vfs_context_t ctx, struct fileproc *fp, uio_t uio, int flags, in fp_readv()
299 dofileread(vfs_context_t ctx, struct fileproc *fp, in dofileread()
328 struct fileproc *fp = NULL; in readv_internal()
[all …]
H A Dposix_sem.c381 struct fileproc *fp = NULL; in sem_open()
786 struct fileproc *fp; in sem_close()
815 struct fileproc *fp; in sem_wait_nocancel()
873 struct fileproc *fp; in sem_trywait()
937 struct fileproc *fp; in sem_post()
1095 psem_label_associate(struct fileproc *fp, struct vnode *vp, vfs_context_t ctx) in psem_label_associate()
H A Dproc_info.c193 static int __attribute__ ((noinline)) pid_vnodeinfo(vnode_t vp, struct fileproc * fp, proc_t proc, …
194 static int __attribute__ ((noinline)) pid_vnodeinfopath(vnode_t vp, struct fileproc * fp, proc_t pr…
195 static int __attribute__ ((noinline)) pid_socketinfo(socket_t so, struct fileproc *fp, proc_t proc,…
196 static int __attribute__ ((noinline)) pid_channelinfo(struct kern_channel *chan, struct fileproc *f…
197 static int __attribute__ ((noinline)) pid_pseminfo(struct psemnode * psem, struct fileproc * fp, pr…
198 static int __attribute__ ((noinline)) pid_pshminfo(struct pshmnode * pshm, struct fileproc * fp, pr…
199 static int __attribute__ ((noinline)) pid_pipeinfo(struct pipe * p, struct fileproc * fp, proc_t pr…
200 static int __attribute__ ((noinline)) pid_kqueueinfo(struct kqueue * kq, struct fileproc * fp, proc…
213 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 Dmach_loader.h113 struct fileproc* dynlinker_fp;
H A Dposix_shm.c345 struct fileproc *fp = NULL; in shm_open()
539 struct fileproc *fp, in pshm_truncate()
741 struct fileproc *fp, in pshm_mmap()
1119 pshm_label_associate(struct fileproc *fp, struct vnode *vp, vfs_context_t ctx) in pshm_label_associate()
H A Dkern_aio.c271 extern int dofileread(vfs_context_t ctx, struct fileproc *fp,
274 extern int dofilewrite(vfs_context_t ctx, struct fileproc *fp,
1799 struct fileproc *fp; in aio_validate()
1966 struct fileproc *fp; in do_aio_read()
1995 struct fileproc *fp; in do_aio_write()
2062 struct fileproc *fp; in do_aio_fsync()
/xnu-11215.1.10/bsd/skywalk/nexus/
H A Dnexus_syscalls.c39 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 *__single fp = NULL; in __nexus_open()
174 struct fileproc *__single fp; in __nexus_register()
252 struct fileproc *__single fp; in __nexus_deregister()
297 struct fileproc *__single fp; in __nexus_create()
364 struct fileproc *__single fp; in __nexus_destroy()
410 struct fileproc *__single fp; in __nexus_get_opt()
473 struct fileproc *__single fp; in __nexus_set_opt()
H A Dnexus_var.h79 struct fileproc *nxctl_fp;
503 extern struct nxctl *nxctl_create(struct proc *, struct fileproc *,
/xnu-11215.1.10/bsd/skywalk/channel/
H A Dchannel_syscalls.c40 static int chop_select(struct fileproc *, int, void *, vfs_context_t);
42 static int chop_kqfilter(struct fileproc *, struct knote *, struct kevent_qos_s *);
74 chop_select(struct fileproc *fp, int which, void *wql, vfs_context_t ctx) in chop_select()
126 chop_kqfilter(struct fileproc *fp, struct knote *kn, struct kevent_qos_s *kev) in chop_kqfilter()
137 struct fileproc *__single fp = NULL; in __channel_open()
307 struct fileproc *__single fp; in __channel_get_info()
376 struct fileproc *__single fp; in __channel_sync()
691 struct fileproc *__single fp; in __channel_get_opt()
755 struct fileproc *__single fp; in __channel_set_opt()
/xnu-11215.1.10/bsd/tests/
H A Dvm_parameter_validation_kern_bsd.c13 struct fileproc * fp;
22 struct fileproc *fp = NULL; in get_control_from_fd()
/xnu-11215.1.10/bsd/miscfs/fifofs/
H A Dfifo_vnops.c403 struct fileproc filetmp; in fifo_ioctl()
410 bzero(&filetmp, sizeof(struct fileproc)); in fifo_ioctl()
436 struct fileproc filetmp; in fifo_select()
440 bzero(&filetmp, sizeof(struct fileproc)); in fifo_select()
/xnu-11215.1.10/bsd/vfs/
H A Dvfs_vnops.c115 static int vn_ioctl(struct fileproc *fp, u_long com, caddr_t data,
117 static int vn_read(struct fileproc *fp, struct uio *uio, int flags,
119 static int vn_write(struct fileproc *fp, struct uio *uio, int flags,
121 static int vn_select( struct fileproc *fp, int which, void * wql,
123 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()
1673 vn_ioctl(struct fileproc *fp, u_long com, caddr_t data, vfs_context_t ctx) in vn_ioctl()
1784 vn_select(struct fileproc *fp, int which, void *wql, __unused vfs_context_t ctx) in vn_select()
1935 vn_kqfilter(struct fileproc *fp, struct knote *kn, struct kevent_qos_s *kev) in vn_kqfilter()
[all …]
H A Dvfs_fsevents.c2182 fseventsf_read(struct fileproc *fp, struct uio *uio, in fseventsf_read()
2209 fseventsf_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, vfs_context_t ctx) in fseventsf_ioctl()
2340 fseventsf_select(struct fileproc *fp, int which, __unused void *wql, vfs_context_t ctx) in fseventsf_select()
2367 fseventsf_stat(__unused struct fileproc *fp, __unused struct stat *sb, __unused vfs_context_t ctx) in fseventsf_stat()
2518 fseventsf_kqfilter(struct fileproc *fp, struct knote *kn, in fseventsf_kqfilter()
2541 fseventsf_drain(struct fileproc *fp, __unused vfs_context_t ctx) in fseventsf_drain()
2782 struct fileproc *f; in fseventsioctl()
/xnu-11215.1.10/osfmk/vm/
H A Dvm_shared_region.h104 struct fileproc *fp;
/xnu-11215.1.10/bsd/miscfs/devfs/
H A Ddevfs_fdesc_support.c405 struct fileproc *fp; in fdesc_attr()
514 struct fileproc *fp; in fdesc_setattr()

123