/illumos-gate/usr/src/uts/common/syscall/ |
H A D | pathconf.c | 54 cpathconf(register vnode_t *vp, int cmd, struct cred *cr) in cpathconf() argument 62 if (error = VOP_PATHCONF(vp, _PC_SYMLINK_MAX, &val, cr, NULL)) in cpathconf() 71 if ((error = VFS_STATVFS(vp->v_vfsp, &sb)) != 0) in cpathconf() 108 if (!(error = VOP_FSYNC(vp, FSYNC, cr, NULL))) in cpathconf() 113 return ((vp->v_vfsp->vfs_flag & VFS_XATTR) ? 1 : 0); in cpathconf() 116 if (error = VOP_PATHCONF(vp, cmd, &val, cr, NULL)) in cpathconf() 141 vnode_t *vp; in pathconf() local 147 if (error = lookupname(fname, UIO_USERSPACE, FOLLOW, NULLVPP, &vp)) { in pathconf() 153 retval = cpathconf(vp, name, CRED()); in pathconf() 154 VN_RELE(vp); in pathconf()
|
H A D | strcalls.c | 191 vnode_t *vp; in msgio() local 204 vp = fp->f_vnode; in msgio() 205 if (vp->v_type == VFIFO) { in msgio() 206 if (vp->v_stream) { in msgio() 215 } else if ((vp->v_type != VCHR && vp->v_type != VSOCK) || in msgio() 271 if (vp->v_type == VSOCK) { in msgio() 420 vnode_t *vp; in msgio32() local 434 vp = fp->f_vnode; in msgio32() 435 if (vp->v_type == VFIFO) { in msgio32() 436 if (vp->v_stream) { in msgio32() [all …]
|
H A D | sendfile.c | 88 struct vnode *vp; in sendvec_chunk64() local 100 vp = fp->f_vnode; in sendvec_chunk64() 353 struct vnode *vp; in sendvec64() local 357 vp = fp->f_vnode; in sendvec64() 396 struct vnode *vp; in sendvec_small_chunk() local 423 vp = fp->f_vnode; in sendvec_small_chunk() 438 so = VTOSO(vp); in sendvec_small_chunk() 686 struct vnode *vp; in sendvec_chunk() local 713 vp = fp->f_vnode; in sendvec_chunk() 718 so = VTOSO(vp); in sendvec_chunk() [all …]
|
H A D | acl.c | 59 vnode_t *vp, int *rv); 67 struct vnode *vp; in acl() local 83 error = cacl(cmd, nentries, aclbufp, vp, &rv); in acl() 84 VN_RELE(vp); in acl() 134 ASSERT(vp); in cacl() 302 (void) VOP_RWLOCK(vp, V_WRITELOCK_TRUE, NULL); in cacl() 305 VOP_RWUNLOCK(vp, V_WRITELOCK_TRUE, NULL); in cacl() 315 VOP_RWUNLOCK(vp, V_WRITELOCK_TRUE, NULL); in cacl() 336 (void) VOP_RWLOCK(vp, V_WRITELOCK_TRUE, NULL); in cacl() 339 VOP_RWUNLOCK(vp, V_WRITELOCK_TRUE, NULL); in cacl() [all …]
|
H A D | lseek.c | 78 vnode_t *vp; in lseek32_common() local 85 vp = fp->f_vnode; in lseek32_common() 86 reg = (vp->v_type == VREG); in lseek32_common() 133 error = VOP_IOCTL(vp, _FIO_SEEK_DATA, (intptr_t)(&noff), in lseek32_common() 143 error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL); in lseek32_common() 162 error = VOP_IOCTL(vp, _FIO_SEEK_HOLE, (intptr_t)(&noff), in lseek32_common() 172 error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL); in lseek32_common() 275 vnode_t *vp; in lseek64() local 284 vp = fp->f_vnode; in lseek64() 319 error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL); in lseek64() [all …]
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | bootp.c | 441 struct cmu_vend *vp; in vend_cmu() local 672 vp = buf; in setenv_() 673 *vp = '\0'; in setenv_() 688 if (vp != buf) in setenv_() 689 *vp++ = FLD_SEP; in setenv_() 692 vp += strlen(vp); in setenv_() 699 vp += strlen(vp); in setenv_() 721 if (vp != buf) in setenv_() 724 vp += strlen(vp); in setenv_() 740 if (!vp) in setenv_() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/ |
H A D | snmplib.c | 506 pdu_varlist_t *vp; in snmp_get_nextrow() local 536 if (vp == NULL || vp->name == NULL || vp->type == SNMP_NOSUCHOBJECT || in snmp_get_nextrow() 569 *nextrow = (vp->name)[vp->name_len-1]; in snmp_get_nextrow() 801 if (vp == NULL || vp->val.iptr == NULL) { in fetch_single_int() 824 if (vp == NULL || vp->val.str == NULL) { in fetch_single_str() 847 if (vp == NULL || vp->val.str == NULL) { in fetch_single_bitstr() 1161 for (vp = pdu->vars; vp; vp = vp->nextvar) { in mibcache_populate() 1162 if (vp->type != ASN_INTEGER && vp->type != ASN_OCTET_STR && in mibcache_populate() 1167 if (vp->name == NULL || vp->val.str == NULL) in mibcache_populate() 1170 row = (vp->name)[vp->name_len-1]; in mibcache_populate() [all …]
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_subr.c | 193 vn_free(vp); in i_sdev_node_dtor() 314 vn_reinit(vp); in sdev_nodeinit() 758 ASSERT(vp); in sdev_update_timestamps() 1268 *vpp = specvp(vp, vp->v_rdev, vp->v_type, kcred); in sdev_to_vp() 1274 *vpp = vp; in sdev_to_vp() 1303 vnode_t *vp; in sdev_filldir_from_store() local 1400 vp = NULL; in sdev_filldir_from_store() 2549 ASSERT(vp->v_type == VDIR || vp->v_type == VLNK); in sdev_modctl_lookup() 2655 cvp = vp; in sdev_modctl_lookup() 2658 vp = cvp; in sdev_modctl_lookup() [all …]
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_vnops.c | 288 if (vp->v_count <= 2 && vp->v_type != VBAD) { in ufs_close() 695 vp = ITOV(ip); in wrip() 1287 vp = ITOV(ip); in rdip() 1946 if (vp->v_type == VCHR || vp->v_type == VBLK) in ufs_getattr() 2526 (vp->v_type != VCHR) && !(IS_SWAPVP(vp))) { in ufs_fsync() 2672 *vpp = vp; in ufs_lookup() 5500 if (vn_has_mandatory_locks(vp, VTOI(vp)->i_mode)) { in ufs_map() 5566 vn_a.vp = vp; in ufs_map() 5772 (vp->v_type == VREG || vp->v_type == VDIR); in ufs_l_pathconf() 6489 *vpp = vp; in ufs_eventlookup() [all …]
|
H A D | ufs_inode.c | 282 vp = ITOV(ip); in ufs_inode_cache_destructor() 293 vn_free(vp); in ufs_inode_cache_destructor() 340 vnode_t *vp; in ufs_alloc_inode() local 373 vp = ITOV(ip); in ufs_alloc_inode() 374 vn_reinit(vp); in ufs_alloc_inode() 378 vn_exists(vp); in ufs_alloc_inode() 486 VN_HOLD(vp); in ufs_iget_internal() 503 VN_RELE(vp); in ufs_iget_internal() 532 vp = ITOV(ip); in ufs_iget_internal() 574 VN_RELE(vp); in ufs_iget_internal() [all …]
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_vadj.c | 80 for (vp = &vlinfo[vcnt]; vp >= vpc; vp--) in vopen() 81 vlcopy(vp[1], vp[0]); in vopen() 121 d = vp->vdepth; in vreopen() 124 vp->vliny = p, vp->vflags &= ~VDIRT; in vreopen() 147 vp->vliny = 0; in vreopen() 218 need = p + vp->vdepth - (vp+1)->vliny; in vglitchup() 241 vp[1].vliny = vp[0].vliny + vp->vdepth; in vglitchup() 881 l++, vp++; in vsync1() 892 (l < vcnt && (vp->vliny <= p || vp[0].vliny == vp[1].vliny))) { in vsync1() 910 p = vp->vliny + vp->vdepth; in vsync1() [all …]
|
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prvfsops.c | 125 struct vnode *vp; in prinitrootnode() local 133 vn_setops(vp, prvnodeops); in prinitrootnode() 134 vp->v_data = (caddr_t)pnp; in prinitrootnode() 137 vn_exists(vp); in prinitrootnode() 253 vnode_t *vp = PTOV(pnp); in prunmount() local 274 if (vp->v_count > 1) { in prunmount() 280 mutex_exit(&vp->v_lock); in prunmount() 282 vn_invalid(vp); in prunmount() 283 vn_free(vp); in prunmount() 294 VN_HOLD(vp); in prroot() [all …]
|
/illumos-gate/usr/src/lib/libzpool/common/ |
H A D | kernel.c | 89 vnode_t *vp; in vn_open() local 160 vp->v_fd = fd; in vn_open() 161 vp->v_size = st.st_size; in vn_open() 163 vp->v_dump_fd = dump_fd; in vn_open() 224 vn_close(vnode_t *vp) in vn_close() argument 226 close(vp->v_fd); in vn_close() 227 if (vp->v_dump_fd != -1) in vn_close() 228 close(vp->v_dump_fd); in vn_close() 243 close(vp->v_fd); in fop_getattr() 379 vnode_t *vp; in kobj_open_file() local [all …]
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/fksmbcl/ |
H A D | fksmbcl_main.c | 423 vnode_t *vp = NULL; in do_dir() local 453 if (vp != NULL) in do_dir() 461 vnode_t *vp = NULL; in do_dirx() local 491 if (vp != NULL) in do_dirx() 500 vnode_t *vp; in show_dents() local 521 vn_rele(vp); in show_dents() 561 vnode_t *vp = NULL; in do_get() local 623 if (vp != NULL) in do_get() 639 vnode_t *vp = NULL; in do_put() local 711 if (vp != NULL) in do_put() [all …]
|
/illumos-gate/usr/src/uts/common/fs/specfs/ |
H A D | specvfsops.c | 114 register struct vnode *vp; in spec_sync() local 130 vp = STOV(sp); in spec_sync() 135 if (IS_SWAPVP(vp)) in spec_sync() 138 if (vp->v_type == VBLK && vn_has_cached_data(vp)) { in spec_sync() 144 VN_HOLD(vp); in spec_sync() 156 vp = STOV(sp); in spec_sync() 157 (void) VOP_PUTPAGE(vp, (offset_t)0, (uint_t)0, B_ASYNC, cr, in spec_sync() 159 VN_RELE(vp); /* Release our hold on vnode */ in spec_sync()
|
/illumos-gate/usr/src/uts/common/fs/mntfs/ |
H A D | mntvfsops.c | 117 struct vnode *vp; in mntinitrootnode() local 123 vp = MTOV(mnp); in mntinitrootnode() 127 vp->v_type = VREG; in mntinitrootnode() 128 vp->v_data = (caddr_t)mnp; in mntinitrootnode() 253 mutex_enter(&vp->v_lock); in mntunmount() 255 mutex_exit(&vp->v_lock); in mntunmount() 259 mutex_exit(&vp->v_lock); in mntunmount() 261 vn_invalid(vp); in mntunmount() 262 vn_free(vp); in mntunmount() 274 VN_HOLD(vp); in mntroot() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_vfs.c | 64 vnode_t *vp; in fksmbsrv_vfs_init() local 86 vp = vncache_enter(&st, NULL, "", fd); in fksmbsrv_vfs_init() 88 vn_hold(vp); in fksmbsrv_vfs_init() 89 rootdir = vp; in fksmbsrv_vfs_init() 149 vnode_t *vp; in fsop_root() local 151 if ((vp = rootdir) == NULL) in fsop_root() 154 vn_hold(vp); in fsop_root() 155 *vpp = vp; in fsop_root() 163 vnode_t *vp; in fsop_statfs() local 166 if ((vp = rootdir) == NULL) in fsop_statfs() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_srv.c | 1513 vp = cs->vp; in rfs4_op_access() 1625 vnode_t *vp = cs->vp; in rfs4_op_commit() local 2132 cs->vp = vp; in rfs4_op_create() 3043 cs->vp = vp; in do_rfs4_op_lookup() 3126 cs->vp = vp; in do_rfs4_op_lookup() 3422 vp = cs->vp; in rfs4_op_read() 3744 cs->vp = vp; in rfs4_op_putpubfh() 3940 vp = cs->vp; in rfs4_op_readlink() 5790 vp = cs->vp; in rfs4_op_write() 6491 vp = cs->vp; in check_open_access() [all …]
|
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/ |
H A D | fake_rw.c | 56 fake_pread(vnode_t *vp, void *cbuf, size_t count, off_t offset) in fake_pread() argument 72 if (vp->v_type == VREG) { in fake_pread() 93 } else if (vp->v_type == VFIFO) { in fake_pread() 100 (void) VOP_RWLOCK(vp, rwflag, NULL); in fake_pread() 115 error = VOP_READ(vp, &auio, ioflag, CRED(), NULL); in fake_pread() 117 VOP_RWUNLOCK(vp, rwflag, NULL); in fake_pread() 144 if (vp->v_type == VREG) { in fake_pwrite() 167 } else if (vp->v_type == VFIFO) { in fake_pwrite() 174 (void) VOP_RWLOCK(vp, rwflag, NULL); in fake_pwrite() 193 error = VOP_WRITE(vp, &auio, ioflag, CRED(), NULL); in fake_pwrite() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | config.c | 258 vp = value; in _expand_config_value() 260 switch (*vp) { in _expand_config_value() 266 vp++; in _expand_config_value() 269 if (vp[1] != '(' || vp[2] == '\0') in _expand_config_value() 278 vp++; in _expand_config_value() 281 vp += 2; in _expand_config_value() 287 vp++; in _expand_config_value() 292 path = strndup(vp, cp - vp); in _expand_config_value() 297 vp = cp + 1; in _expand_config_value() 313 vp++; in _expand_config_value() [all …]
|
/illumos-gate/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_node.c | 140 hp = VTOH(vp); in hs_access() 314 vp = HTOV(hp); in hs_getfree() 337 vnode_t *vp; in hs_getfree() local 342 vn_reinit(vp); in hs_getfree() 410 VN_HOLD(vp); in hs_findhash() 420 return (vp); in hs_findhash() 459 (vp == rvp && vp->v_count > 1))) { in hs_synchash() 626 newvp = specvp(vp, vp->v_rdev, vp->v_type, in hs_makenode() 631 VN_RELE(vp); in hs_makenode() 646 return (vp); in hs_makenode() [all …]
|
/illumos-gate/usr/src/uts/common/fs/ctfs/ |
H A D | ctfs_tmpl.c | 57 vnode_t *vp; in ctfs_create_tmplnode() local 62 vp = gfs_file_create(sizeof (ctfs_tmplnode_t), pvp, ctfs_ops_tmpl); in ctfs_create_tmplnode() 63 tmplnode = vp->v_data; in ctfs_create_tmplnode() 67 return (vp); in ctfs_create_tmplnode() 91 vnode_t *vp, in ctfs_tmpl_getattr() argument 101 vap->va_ctime.tv_sec = vp->v_vfsp->vfs_mtime; in ctfs_tmpl_getattr() 104 ctfs_common_getattr(vp, vap); in ctfs_tmpl_getattr() 117 vnode_t *vp, in ctfs_tmpl_ioctl() argument 125 ctfs_tmplnode_t *tmplnode = vp->v_data; in ctfs_tmpl_ioctl() 179 ctfs_tmpl_inactive(vnode_t *vp, cred_t *cr, caller_context_t *ct) in ctfs_tmpl_inactive() argument [all …]
|
H A D | ctfs_all.c | 61 vnode_t *vp = gfs_dir_create(sizeof (ctfs_adirnode_t), pvp, in ctfs_create_adirnode() local 65 return (vp); in ctfs_create_adirnode() 74 vnode_t *vp, in ctfs_adir_getattr() argument 88 vap->va_ctime.tv_sec = vp->v_vfsp->vfs_mtime; in ctfs_adir_getattr() 91 ctfs_common_getattr(vp, vap); in ctfs_adir_getattr() 98 ctfs_adir_do_lookup(vnode_t *vp, const char *nm, vnode_t **vpp, ino64_t *inop, in ctfs_adir_do_lookup() argument 108 ct = contract_ptr(i, VTOZONE(vp)->zone_uniqid); in ctfs_adir_do_lookup() 112 *vpp = ctfs_create_symnode(vp, ct); in ctfs_adir_do_lookup() 121 ctfs_adir_do_readdir(vnode_t *vp, void *dp, int *eofp, in ctfs_adir_do_readdir() argument 130 zuniqid = VTOZONE(vp)->zone_uniqid; in ctfs_adir_do_readdir()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | physmem.c | 353 struct vnode *vp; in physmem_setup_addrs() local 380 php->ph_vnode = vp; in physmem_setup_addrs() 382 vn_a.vp = vp; in physmem_setup_addrs() 399 vn_free(vp); in physmem_setup_addrs() 461 struct vnode *vp; in physmem_map_addrs() local 478 vp = php->ph_vnode; in physmem_map_addrs() 530 struct vnode *vp; in map_page_proc() local 575 vp = php->ph_vnode; in map_page_proc() 695 VN_RELE(vp); in physmem_delmap() 719 vn_free(vp); in physmem_inactive() [all …]
|
/illumos-gate/usr/src/uts/common/fs/objfs/ |
H A D | objfs_root.c | 46 vnode_t *vp = gfs_root_create(sizeof (objfs_rootnode_t), vfsp, in objfs_create_root() local 50 return (vp); in objfs_create_root() 55 objfs_root_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, in objfs_root_getattr() argument 60 vap->va_nodeid = gfs_file_inode(vp); in objfs_root_getattr() 63 vap->va_atime.tv_sec = vp->v_vfsp->vfs_mtime; in objfs_root_getattr() 66 return (objfs_common_getattr(vp, vap)); in objfs_root_getattr() 71 objfs_root_do_lookup(vnode_t *vp, const char *nm, vnode_t **vpp, ino64_t *inop, in objfs_root_do_lookup() argument 91 *vpp = objfs_create_odirnode(vp, mp); in objfs_root_do_lookup() 105 objfs_root_do_readdir(vnode_t *vp, void *dp, int *eofp, in objfs_root_do_readdir() argument 155 objfs_root_readdir(vnode_t *vp, uio_t *uiop, cred_t *cr, int *eofp, in objfs_root_readdir() argument [all …]
|