Lines Matching defs:ctx
111 static int vfs_getrealpath(const char * path, char * realpath, size_t bufsize, vfs_context_t ctx);
115 int lookup_traverse_mountpoints(struct nameidata *ndp, struct componentname *cnp, vnode_t dp, int vbusyflags, vfs_context_t ctx);
116 int lookup_handle_symlink(struct nameidata *ndp, vnode_t *new_dp, vfs_context_t ctx);
117 int lookup_authorize_search(vnode_t dp, struct componentname *cnp, int dp_authorized_in_cache, vfs_context_t ctx);
119 int lookup_handle_rsrc_fork(vnode_t dp, struct nameidata *ndp, struct componentname *cnp, int wantparent, vfs_context_t ctx);
122 int wantparent, int atroot, vfs_context_t ctx);
170 vfs_context_t ctx = cnp->cn_context;
171 proc_t p = vfs_context_proc(ctx);
180 if (!vfs_context_ucred(ctx) || !p)
203 &keep_going, ndp->ni_ncgeneration, wantparent, 0, ctx);
283 if ((realpath_err= vfs_getrealpath(&cnp->cn_pnbuf[6], realpath, MAXPATHLEN, ctx))) {
340 dp = vfs_context_cwd(ctx);
364 error = lookup_handle_symlink(ndp, &dp, ctx);
410 lookup_authorize_search(vnode_t dp, struct componentname *cnp, int dp_authorized_in_cache, vfs_context_t ctx)
415 error = vnode_authorize(dp, NULL, KAUTH_VNODE_SEARCH, ctx);
420 error = mac_vnode_check_lookup(ctx, dp, cnp);
474 lookup_handle_rsrc_fork(vnode_t dp, struct nameidata *ndp, struct componentname *cnp, int wantparent, vfs_context_t ctx)
515 error = vnode_getnamedstream(dp, &svp, XATTR_RESOURCEFORK_NAME, nsop, 0, ctx);
570 int wantparent, int atroot, vfs_context_t ctx)
589 error = vnode_trigger_resolve(dp, ndp, ctx);
614 error = lookup_traverse_mountpoints(ndp, cnp, dp, vbusyflags, ctx);
622 error = vnode_label(vnode_mount(dp), NULL, dp, NULL, 0, ctx);
726 error = lookup_handle_rsrc_fork(dp, ndp, cnp, wantparent, ctx);
869 vfs_context_t ctx = cnp->cn_context;
913 if ( (error = cache_lookup_path(ndp, cnp, dp, ctx, &dp_authorized, last_dp)) ) {
1005 error = lookup_authorize_search(dp, cnp, dp_authorized, ctx);
1027 error = VNOP_LOOKUP(dp, &ndp->ni_vp, cnp, ctx);
1086 error = lookup_handle_found_vnode(ndp, cnp, rdonly, vbusyflags, &keep_going, nc_generation, wantparent, atroot, ctx);
1169 int vbusyflags, vfs_context_t ctx)
1190 (void) vnode_trigger_resolve(dp, ndp, ctx);
1227 error = VFS_ROOT(mp, &tdp, ctx);
1247 error = vnode_trigger_resolve(dp, ndp, ctx);
1283 lookup_handle_symlink(struct nameidata *ndp, vnode_t *new_dp, vfs_context_t ctx)
1306 if ((error = mac_vnode_check_readlink(ctx, ndp->ni_vp)) != 0)
1326 error = VNOP_READLINK(ndp->ni_vp, auio, ctx);
1411 vfs_context_t ctx = cnp->cn_context;;
1454 if ( (error = VNOP_LOOKUP(dp, vpp, cnp, ctx)) ) {
1624 vfs_getbyid(fsid_t *fsid, ino64_t ino, vnode_t *vpp, vfs_context_t ctx)
1636 error = VFS_ROOT(mp, vpp, ctx);
1638 error = VFS_VGET(mp, ino, vpp, ctx);
1662 vfs_getrealpath(const char * path, char * realpath, size_t bufsize, vfs_context_t ctx)
1698 error = VFS_ROOT(mp, &vp, ctx);
1700 error = VFS_VGET(mp, ino, &vp, ctx);
1709 error = build_path(vp, realpath, bufsize, &length, 0, ctx);