/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_vnops.c | 276 if (vp->v_count <= 2 && vp->v_type != VBAD) { in udf_close() 448 if (vp->v_type == VCHR || vp->v_type == VBLK) { in udf_getattr() 505 ip = VTOI(vp); in udf_setattr() 670 VN_RELE(vp); in udf_lookup() 1137 ip = VTOI(vp); in udf_readdir() 1413 ip = VTOI(vp); in udf_readlink() 1959 ip = VTOI(vp); in udf_putpage() 2070 if (vn_has_mandatory_locks(vp, VTOI(vp)->i_char)) { in udf_map() 2082 vn_a.vp = vp; in udf_map() 2653 ip = VTOI(vp); in ud_putpages() [all …]
|
/illumos-gate/usr/src/uts/common/fs/pcfs/ |
H A D | pc_alloc.c | 60 struct vnode *vp; in pc_bmap() local 64 vp = PCTOV(pcp); in pc_bmap() 65 fsp = VFSTOPCFS(vp->v_vfsp); in pc_bmap() 95 if (vp->v_type == VREG && in pc_bmap() 168 struct vnode *vp; in pc_balloc() local 172 vp = PCTOV(pcp); in pc_balloc() 260 struct vnode *vp; in pc_bfree() local 262 vp = PCTOV(pcp); in pc_bfree() 271 if (vp->v_type == VREG) { in pc_bfree() 316 vp->v_type == VDIR) in pc_bfree() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | iwscons.c | 117 str_vp(vnode_t *vp) in str_vp() argument 127 ASSERT(vp->v_stream != NULL); in str_vp() 154 srrm(vnode_t *vp) in srrm() argument 161 vp = str_vp(vp); in srrm() 162 ASSERT(vp); in srrm() 166 if (lp->wl_vp == vp) in srrm() 188 vp = str_vp(vp); in srpush() 189 ASSERT(vp); in srpush() 194 lp->wl_vp = vp; in srpush() 469 vnode_t *vp = rwsconsvp; in iwscnopen() local [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_subr.c | 2177 vnode_t *vp; in rinactive() local 2282 vnode_t *vp; in makenfsnode() local 2327 return (vp); in makenfsnode() 2344 vnode_t *vp; in makenfs3node_va() local 2377 return (vp); in makenfs3node_va() 2386 vnode_t *vp; in makenfs3node() local 2418 return (vp); in makenfs3node() 2466 vnode_t *vp; in make_rnode() local 3093 if (IS_SWAPVP(vp) || vn_is_readonly(vp)) in rflush() 3138 if (IS_SWAPVP(vp) || vn_is_readonly(vp)) in rflush() [all …]
|
H A D | nfs4_srv_readdir.c | 137 *vpp = vp; in nfs4_readdir_getvp() 150 *vpp = vp; in nfs4_readdir_getvp() 190 VN_RELE(vp); in nfs4_readdir_getvp() 195 newexi = checkexport4(&vp->v_vfsp->vfs_fsid, &fid, vp); in nfs4_readdir_getvp() 198 *vpp = vp; in nfs4_readdir_getvp() 232 *vpp = vp; in nfs4_readdir_getvp() 378 vnode_t *vp; in rfs4_op_readdir() local 627 vp = NULL; in rfs4_op_readdir() 679 if (vp) { in rfs4_op_readdir() 728 if (vp && in rfs4_op_readdir() [all …]
|
/illumos-gate/usr/src/uts/common/ktli/ |
H A D | t_kopen.c | 74 vnode_t *vp; in t_kopen() local 116 vp = makespecvp(rdev, VCHR); in t_kopen() 124 if ((error = VOP_OPEN(&vp, flags, cr, NULL)) in t_kopen() 133 VN_RELE(vp); in t_kopen() 144 fp->f_vnode = vp; in t_kopen() 149 vp = fp->f_vnode; in t_kopen() 152 if (vp->v_stream == NULL) { in t_kopen() 166 KTLILOG(2, "t_kopen: vp %x, ", vp); in t_kopen() 167 KTLILOG(2, "stp %x\n", vp->v_stream); in t_kopen() 172 error = strioctl(vp, I_FIND, (intptr_t)"timod", 0, K_TO_K, cr, &retval); in t_kopen() [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | statvfs.c | 163 vnode_t *vp; in statvfs() local 178 VN_RELE(vp); in statvfs() 218 vnode_t *vp; in statvfs64() local 228 error = cstatvfs64(vp->v_vfsp, sbp); in statvfs64() 229 VN_RELE(vp); in statvfs64() 292 vnode_t *vp; in statvfs32() local 302 error = cstatvfs32(vp->v_vfsp, sbp); in statvfs32() 303 VN_RELE(vp); in statvfs32() 333 vnode_t *vp; in statvfs64_32() local 343 error = cstatvfs64_32(vp->v_vfsp, sbp); in statvfs64_32() [all …]
|
H A D | getdents.c | 73 vnode_t *vp; in getdents32() local 91 vp = fp->f_vnode; in getdents32() 92 if (vp->v_type != VDIR) { in getdents32() 120 (void) VOP_RWLOCK(vp, V_WRITELOCK_FALSE, NULL); in getdents32() 121 error = VOP_READDIR(vp, &auio, fp->f_cred, &sink, NULL, 0); in getdents32() 122 VOP_RWUNLOCK(vp, V_WRITELOCK_FALSE, NULL); in getdents32() 191 vnode_t *vp; in getdents64() local 209 vp = fp->f_vnode; in getdents64() 210 if (vp->v_type != VDIR) { in getdents64() 227 (void) VOP_RWLOCK(vp, V_WRITELOCK_FALSE, NULL); in getdents64() [all …]
|
/illumos-gate/usr/src/uts/common/cpr/ |
H A D | cpr_dump.c | 197 cpr_write_header(vnode_t *vp) in cpr_write_header() argument 275 cpr_write_terminator(vnode_t *vp) in cpr_write_terminator() argument 297 cpr_write_bitmap(vnode_t *vp) in cpr_write_bitmap() argument 330 cpr_write_statefile(vnode_t *vp) in cpr_write_statefile() argument 409 cpr_dump(vnode_t *vp) in cpr_dump() argument 437 if (error = i_cpr_dump_setup(vp)) in cpr_dump() 495 if (error = cpr_flush_write(vp)) in cpr_dump() 966 if (vp->v_type == VBLK) { in cpr_write() 989 if (vp->v_type == VBLK) { in cpr_write() 993 if (wbytes > VTOI(vp)->i_size) in cpr_write() [all …]
|
/illumos-gate/usr/src/cmd/rpcgen/ |
H A D | rpc_tblout.c | 90 version_list *vp; in write_table() local 97 for (vp = def->def.pr.versions; vp != NULL; vp = vp->next) { in write_table() 100 locase(def->def_name), vp->vers_num); in write_table() 104 if (nullproc(vp->procs)) { in write_table() 113 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_table() 136 pvname_svc(proc->proc_name, vp->vers_num); in write_table() 140 pvname(proc->proc_name, vp->vers_num); in write_table()
|
/illumos-gate/usr/src/uts/common/fs/objfs/ |
H A D | objfs_odir.c | 42 objfs_odir_do_inode(vnode_t *vp, int index) in objfs_odir_do_inode() argument 44 objfs_odirnode_t *odir = vp->v_data; in objfs_odir_do_inode() 52 vnode_t *vp = gfs_dir_create(sizeof (objfs_odirnode_t), pvp, in objfs_create_odirnode() local 55 objfs_odirnode_t *onode = vp->v_data; in objfs_create_odirnode() 59 return (vp); in objfs_create_odirnode() 64 objfs_odir_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, in objfs_odir_getattr() argument 72 vap->va_nodeid = gfs_file_inode(vp); in objfs_odir_getattr() 76 return (objfs_common_getattr(vp, vap)); in objfs_odir_getattr()
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | xattr.c | 154 xattr_file_t *np = vp->v_data; in xattr_file_access() 168 cleanshares(vp, ddi_get_pid()); in xattr_file_close() 482 xattr_file_t *np = vp->v_data; in xattr_file_getattr() 494 pvp = gfs_file_parent(vp); in xattr_file_getattr() 847 vnode_t *vp; in xattr_mkfile() local 851 np = vp->v_data; in xattr_mkfile() 853 vp->v_flag |= V_SYSATTR; in xattr_mkfile() 854 return (vp); in xattr_mkfile() 1106 pvp = gfs_file_parent(vp); in xattr_dir_getattr() 1316 vnode_t *vp; in readdir_xattr_casecmp() local [all …]
|
H A D | dnlc.c | 461 ncp->vp = vp; in dnlc_enter() 535 ncp->vp = vp; in dnlc_update() 543 if (tcp->vp != vp) { in dnlc_update() 545 tcp->vp = vp; in dnlc_update() 637 vp = ncp->vp; in dnlc_lookup() 772 if (ncp->dp == vp || ncp->vp == vp) { in dnlc_purge_vp() 906 vp = ncp->vp; in dnlc_fs_purge1() 907 if (!vn_has_cached_data(vp) && (vp->v_count == 1) && in dnlc_fs_purge1() 1046 vp = ncp->vp; in do_dnlc_reduce_cache() 1064 vp = ncp->vp; in do_dnlc_reduce_cache() [all …]
|
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prvnops.c | 3738 vp = VTOP(vp)->pr_realvp; in prcreate() 3816 for (vp = p->p_trace; vp != NULL; vp = VTOP(vp)->pr_next) { in pr_lookup_procdir() 4020 vp = NULL; in pr_lookup_objectdir() 4034 vp != NULL && vp->v_type == VREG && in pr_lookup_objectdir() 4046 vp = NULL; in pr_lookup_objectdir() 4148 for (vp = lep->le_trace; vp != NULL; vp = VTOP(vp)->pr_next) { in pr_lookup_lwpdir() 4537 vp != NULL && vp->v_type == VREG && in pr_lookup_pathdir() 4785 vp = NULL; in prlwpnode() 5248 vp != NULL && vp->v_type == VREG && in rebuild_objdir() 6296 vp = rvp; in prrealvp() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/bsd/ |
H A D | readv.c | 15 __readv(fd, vp, vpcount) in __readv() argument 17 const struct iovec *vp; 23 int bytes = read(fd, vp->iov_base, vp->iov_len); 28 if (bytes != vp->iov_len) 30 vp++;
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | seg_map.c | 260 hashid = ((((uintptr_t)(vp) >> 6) + ((uintptr_t)(vp) >> 3) + \ 502 struct vnode *vp; in segmap_unlock() local 524 vp = smp->sm_vp; in segmap_unlock() 593 struct vnode *vp; in segmap_fault() local 642 if (vp == NULL) in segmap_fault() 679 vp = smp->sm_vp; in segmap_fault() 682 if (vp == NULL) in segmap_fault() 815 vp = smp->sm_vp; in segmap_faulta() 1058 vp = smp->sm_vp; in segmap_hashout() 1430 vp = smp->sm_vp; in segmap_pagecreate() [all …]
|
H A D | vm_swap.c | 388 if (vp && sip) { in swap_in_range() 430 VN_HOLD(vp); in swapdel_byname() 432 return (vp); in swapdel_byname() 450 struct vnode *vp; in swapctl() local 748 if (vp == NULL) in swapctl() 753 VN_RELE(vp); in swapctl() 762 if (vp->v_vfsp && vn_is_readonly(vp)) in swapctl() 782 VN_RELE(vp); in swapctl() 1059 VN_RELE(vp); in swapctl32() 1068 if (vp->v_vfsp && vn_is_readonly(vp)) in swapctl32() [all …]
|
H A D | seg_vn.c | 828 svd->vp = a->vp; in segvn_create() 1107 for (vp = nvpage; vp < evp; vp++) { in segvn_concat() 1128 for (vp = nvpage; vp < evp; vp++) { in segvn_concat() 1852 for (vp = svd->vpage; vp < evp; vp++) { in segvn_count_swap_by_vpages() 2600 vp = svd->vp; in segvn_softunlock() 2606 vp = svd->vp; in segvn_softunlock() 5433 vp = svd->vp; in segvn_fault() 5665 vp = svd->vp; in segvn_faulta() 7551 vp = svd->vp; in segvn_incore() 8168 vp = svd->vp; in segvn_advise() [all …]
|
/illumos-gate/usr/src/uts/common/fs/ctfs/ |
H A D | ctfs_latest.c | 66 ctfs_latest_nested_open(vnode_t *vp, cred_t *cr) in ctfs_latest_nested_open() argument 69 gfs_file_index(gfs_file_parent(vp))]; in ctfs_latest_nested_open() 74 cvp = ctfs_create_cdirnode(gfs_file_parent(vp), ct); in ctfs_latest_nested_open() 97 vnode_t *vp, in ctfs_latest_access() argument 108 if (nvp = ctfs_latest_nested_open(vp, cr)) { in ctfs_latest_access() 147 vnode_t *vp, in ctfs_latest_getattr() argument 155 if (nvp = ctfs_latest_nested_open(vp, cr)) { in ctfs_latest_getattr() 165 vap->va_ctime.tv_sec = vp->v_vfsp->vfs_mtime; in ctfs_latest_getattr() 168 ctfs_common_getattr(vp, vap); in ctfs_latest_getattr()
|
/illumos-gate/usr/src/lib/libzpool/common/sys/ |
H A D | zfs_context.h | 250 extern int fop_getattr(vnode_t *vp, vattr_t *vap); 252 #define VOP_CLOSE(vp, f, c, o, cr, ct) 0 argument 253 #define VOP_PUTPAGE(vp, of, sz, fl, cr, ct) 0 argument 254 #define VOP_GETATTR(vp, vap, fl, cr, ct) fop_getattr((vp), (vap)); argument 255 #define VOP_SPACE(vp, cmd, a, f, o, cr, ct) 0 argument 257 #define VOP_FSYNC(vp, f, cr, ct) fsync((vp)->v_fd) argument 259 #define VN_RELE(vp) vn_close(vp) argument 264 int x2, int x3, vnode_t *vp, int fd); 265 extern int vn_rdwr(int uio, vnode_t *vp, void *addr, ssize_t len, 267 extern void vn_close(vnode_t *vp); [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_bitmap.c | 551 bn = vp->bmv_base; in bmp_setval() 596 bn = vp->bmv_base; in bmp_getval() 605 ip = vp->bmv_val; in bmp_getval() 718 bm_iovec_t *vp; in bm_getiov() local 731 if (!vp) in bm_getiov() 751 bm_iovec_t *vp; in bm_setiov() local 1167 bn = vp->bmv_base; in dbmp_setval() 1222 ip = vp->bmv_val; in dbmp_getval() 1498 bm_iovec_t *vp; in dbm_getiov() local 1511 if (!vp) in dbm_getiov() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_node.c | 259 vnode_t *vp, in smb_node_lookup() argument 315 if ((node->n_hashkey == hashkey) && (node->vp == vp)) { in smb_node_lookup() 1134 vp = node->vp; in smb_node_getmntpath() 1140 VN_HOLD(vp); in smb_node_getmntpath() 1145 VN_RELE(vp); in smb_node_getmntpath() 1190 vnode_t *vp; in smb_node_getpath() local 1198 vp = dnode->vp; in smb_node_getpath() 1199 VN_HOLD(vp); in smb_node_getpath() 1207 VN_RELE(vp); in smb_node_getpath() 1244 VN_HOLD(vp); in smb_node_alloc() [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/dtrace/ |
H A D | smbnode.d | 45 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path); 55 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path); 66 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path); 75 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path); 84 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path); 93 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path); 103 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path); 112 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg1)->vp)->v_path); 121 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg1)->vp)->v_path);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | gfs.h | 120 #define gfs_file_parent(vp) (((gfs_file_t *)(vp)->v_data)->gfs_parent) argument 122 #define gfs_file_index(vp) (((gfs_file_t *)(vp)->v_data)->gfs_index) argument 123 #define gfs_file_set_index(vp, idx) \ argument 124 (((gfs_file_t *)(vp)->v_data)->gfs_index = (idx)) 126 #define gfs_file_inode(vp) (((gfs_file_t *)(vp)->v_data)->gfs_ino) argument 127 #define gfs_file_set_inode(vp, ino) \ argument 128 (((gfs_file_t *)(vp)->v_data)->gfs_ino = (ino))
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | nvdisc.c | 230 for(n=0; n< sizeof(vp->disc)/sizeof(*vp->disc); n++) in chktfree() 235 if(n>=sizeof(vp->disc)/sizeof(*vp->disc)) in chktfree() 343 for(n=0; n < sizeof(vp->disc)/sizeof(*vp->disc); n++) in assign() 453 while(vp) in nv_setdisc() 455 if(vp->fun.disc && (vp->fun.disc->setdisc || vp->fun.disc->putval == assign)) in nv_setdisc() 457 vp = (struct vardisc*)vp->fun.next; in nv_setdisc() 459 if(vp && !vp->fun.disc) in nv_setdisc() 460 vp = 0; in nv_setdisc() 508 if(vp && vp->fun.disc->putval!=assign) in nv_setdisc() 509 vp = 0; in nv_setdisc() [all …]
|