Lines Matching defs:ctx
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);
97 static int soo_close(struct fileglob *, vfs_context_t ctx);
98 static int soo_drain(struct fileproc *, vfs_context_t ctx);
101 extern int soo_ioctl(struct fileproc *, u_long, caddr_t, vfs_context_t ctx);
103 extern int soo_select(struct fileproc *, int, void *, vfs_context_t ctx);
104 extern int soo_kqfilter(struct fileproc *, struct knote *, vfs_context_t ctx);
117 vfs_context_t ctx)
135 error = mac_socket_check_receive(vfs_context_ucred(ctx), so);
150 vfs_context_t ctx)
170 error = mac_socket_check_send(vfs_context_ucred(ctx), so, NULL);
180 procp = vfs_context_proc(ctx);
342 soo_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, vfs_context_t ctx)
346 proc_t procp = vfs_context_proc(ctx);
362 soo_select(struct fileproc *fp, int which, void *wql, vfs_context_t ctx)
371 procp = vfs_context_proc(ctx);
374 if (mac_socket_check_select(vfs_context_ucred(ctx), so, which) != 0);
471 soo_close(struct fileglob *fg, __unused vfs_context_t ctx)
486 soo_drain(struct fileproc *fp, __unused vfs_context_t ctx)