Home
last modified time | relevance | path

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

12

/xnu-8020.101.4/bsd/sys/
H A Dfile_internal.h119 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 Dfiledesc.h137 …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 Dmman.h297 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 Dfile.h101 struct fileproc;
103 int fp_getfvp(struct proc *p, int fd, struct fileproc **resultfp, struct vnode **resultvp);
H A Devent.h757 struct fileproc *kn_fp;
840 struct fileproc *kec_fp; /* fileproc to pass to fp_drop or NULL */
H A Dsocketvar.h938 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 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 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 Dkern_descrip.c155 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 Dkern_guarded.c60 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 Dsys_generic.c176 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 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 Dposix_sem.c381 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 Dproc_info.c188 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 Dposix_shm.c343 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 Dkern_aio.c271 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 Dnexus_syscalls.c72 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 Dnexus_var.h79 struct fileproc *nxctl_fp;
493 extern struct nxctl *nxctl_create(struct proc *, struct fileproc *,
/xnu-8020.101.4/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 *);
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 Dfifo_vnops.c395 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 Dvfs_vnops.c118 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 Dvfs_fsevents.c1783 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 Dvm_shared_region.h256 struct fileproc *fp;
/xnu-8020.101.4/bsd/miscfs/devfs/
H A Ddevfs_fdesc_support.c385 struct fileproc *fp; in fdesc_attr()
494 struct fileproc *fp; in fdesc_setattr()
/xnu-8020.101.4/security/
H A Dmac_framework.h93 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 Daudit.h251 struct fileproc *fp);

12