Lines Matching defs:ctx
200 static void vnclear (struct vn_softc *vn, vfs_context_t ctx);
248 file_io(struct vnode * vp, vfs_context_t ctx,
260 error = VNOP_READ(vp, auio, IO_SYNC, ctx);
262 error = VNOP_WRITE(vp, auio, IO_SYNC, ctx);
290 vfs_context_t ctx)
330 error = VNOP_READ(vp, uio, ioflag, ctx);
350 vncopy_block_to_shadow(struct vn_softc * vn, vfs_context_t ctx,
361 error = file_io(vn->sc_vp, ctx, UIO_READ,
368 error = file_io(vn->sc_shadow_vp, ctx, UIO_WRITE,
383 vfs_context_t ctx)
431 vnode_setsize(vn->sc_shadow_vp, size, IO_SYNC, ctx);
449 error = vncopy_block_to_shadow(vn, ctx, s, d);
461 error = vncopy_block_to_shadow(vn, ctx,
472 error = VNOP_WRITE(vn->sc_shadow_vp, uio, ioflag, ctx);
649 vfs_context_t ctx)
675 error = file_io(vp, ctx, UIO_READ, base + start,
697 vfs_context_t ctx)
722 vnode_setsize(vn->sc_shadow_vp, size, IO_SYNC, ctx);
725 error = file_io(vn->sc_shadow_vp, ctx, UIO_WRITE,
747 vn_readwrite_io(struct vn_softc * vn, struct buf * bp, vfs_context_t ctx)
760 error = file_io(vn->sc_vp, ctx,
769 error = shadow_read(vn, bp, iov_base, ctx);
771 error = shadow_write(vn, bp, iov_base, ctx);
1136 vfs_context_t ctx = vfs_context_current();
1144 NDINIT(&nd, LOOKUP, OP_OPEN, FOLLOW, UIO_SYSSPACE, vniop->vn_file, ctx);
1149 vniop->vn_file, ctx);
1160 vniop->vn_file, ctx);
1165 vniop->vn_file, ctx);
1176 error = vnode_size(nd.ni_vp, &file_size, ctx);
1179 (void) vn_close(nd.ni_vp, flags, ctx);
1187 (void)vn_close(nd.ni_vp, flags, ctx);
1216 vfs_context_t ctx = vfs_context_current();
1224 NDINIT(&nd, LOOKUP, OP_OPEN, FOLLOW, UIO_SYSSPACE, vniop->vn_file, ctx);
1229 vniop->vn_file, ctx);
1238 || (error = vnode_size(nd.ni_vp, &file_size, ctx))) {
1239 (void)vn_close(nd.ni_vp, flags, ctx);
1246 (void)vn_close(nd.ni_vp, flags, ctx);
1305 vnclear(struct vn_softc *vn, vfs_context_t ctx)
1309 (void)vn_close(vn->sc_vp, vn->sc_open_flags, ctx);
1314 (void)vn_close(vn->sc_shadow_vp, FREAD | FWRITE, ctx);