/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_srv_attr.c | 160 cs.vp = rootvp; in rfs4_attr_init() 425 vnode_t *vp = cs->vp; in fattr4_get_change() local 433 ASSERT(vp != NULL); in fattr4_get_change() 908 vnode_t *vp = sarg->cs->vp; in rfs4_fattr4_acl() local 922 ASSERT(vp != NULL); in rfs4_fattr4_acl() 999 ASSERT(vp != NULL); in rfs4_fattr4_acl() 1327 vnode_t *stubvp = NULL, *vp; in rfs4_get_mntdfileid() local 1329 vp = sarg->cs->vp; in rfs4_get_mntdfileid() 1340 if ((vp->v_flag & VROOT) || VN_IS_CURZONEROOT(vp)) { in rfs4_get_mntdfileid() 1343 VN_HOLD(vp); in rfs4_get_mntdfileid() [all …]
|
H A D | nfs4_callback.c | 177 vnode_t *vp; in cb_getattr() local 277 VN_HOLD(vp); in cb_getattr() 370 VN_RELE(vp); in cb_getattr() 390 vnode_t *vp; in cb_recall() local 469 VN_HOLD(vp); in cb_recall() 913 vnode_t *vp; in nfs4_dquery() local 925 if (vp == NULL || vp->v_type != VREG || in nfs4_dquery() 1587 vnode_t *vp; in nfs4delegreturn_impl() local 1744 vnode_t *vp; in delegreturn_all_thread() local 2042 vnode_t *vp; in nfs4delegreturn_thread() local [all …]
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | seg_vn.h | 54 struct vnode *vp; /* vnode mapped from */ member 94 struct vnode *vp; /* vnode that segment mapping is to */ member 169 ((struct segvn_crargs *)(argsp))->vp != NULL) 176 ((struct segvn_crargs *)(argsp))->vp == NULL) 178 #define SVNTR_HASH_FUNC(vp) (((((uintptr_t)(vp)) >> 4) ^ \ argument 179 (((uintptr_t)(vp)) >> 11)) & \ 188 (SEGVN_DATA(seg)->vp == NULL || \ 189 SEGVN_DATA(seg)->vp->v_type != VREG) && \
|
H A D | vm_page.c | 735 vnode_t *vp, in page_lookup_create() argument 3558 vnode_t *vp; in page_hashout() local 4383 if (!PP_ISFREE(pp) && vp != NULL && !VN_ISKAS(vp) && in page_busy() 4393 if (PP_ISFREE(pp) || vp == NULL || IS_SWAPVP(vp) || in page_busy() 4401 VN_HOLD(vp); in page_busy() 4405 VN_RELE(vp); in page_busy() 4456 if ((vp = pp->p_vnode) == NULL || VN_ISKAS(vp)) in page_invalidate_pages() 4520 VN_HOLD(vp); in page_invalidate_pages() 4529 VN_RELE(vp); in page_invalidate_pages() 5240 if (vp != NULL && !IS_SWAPFSVP(vp) && !VN_ISKAS(vp)) { in page_try_demote_pages() [all …]
|
H A D | pvn.h | 59 struct page *pvn_read_kluster(struct vnode *vp, u_offset_t off, 63 struct page *pvn_write_kluster(struct vnode *vp, struct page *pp, 69 int pvn_vplist_dirty(struct vnode *vp, u_offset_t off, 73 void pvn_vplist_setdirty(vnode_t *vp, int (*page_check)(page_t *)); 75 void pvn_vpzero(struct vnode *vp, u_offset_t vplen, size_t zbytes); 80 struct vnode *vp, u_offset_t off, size_t len,
|
/illumos-gate/usr/src/uts/common/fs/namefs/ |
H A D | namevfs.c | 179 if (np->nm_filevp == vp && in namefind() 199 if (np->nm_filevp == vp) { in nm_walk_mounts() 246 nodep = *NM_FILEVP_HASH(vp); in nm_umountall() 248 if (nodep->nm_filevp == vp && in nm_umountall() 284 nodep = *NM_FILEVP_HASH(vp); in nm_umountall() 311 error = nm_umountall(vp, crp); in nm_unmountall() 586 vnode_t *vp, *thisvp; in nm_unmount() local 599 vp = nodep->nm_filevp; in nm_unmount() 625 if (namefind(vp, NULLVP) == NULL && vp->v_stream) { in nm_unmount() 648 VN_HOLD(vp); in nm_root() [all …]
|
/illumos-gate/usr/src/uts/common/fs/pcfs/ |
H A D | pc_dir.c | 76 struct vnode *vp; in pc_dirlook() local 85 vp = PCTOV(dp); in pc_dirlook() 96 VN_HOLD(vp); in pc_dirlook() 104 if (vp->v_flag & VROOT) { in pc_dirlook() 106 VN_HOLD(vp); in pc_dirlook() 135 struct vnode *vp = PCTOV(dp); in pc_direnter() local 275 struct vnode *vp = PCTOV(dp); in pc_makedirentry() local 494 struct vnode *vp; in pc_dirempty() local 496 vp = PCTOV(pcp); in pc_dirempty() 907 struct vnode *vp; in pc_findentry() local [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | readlink.c | 57 vnode_t *vp; in readlinkat() local 76 NULLVPP, &vp, startvp)) { in readlinkat() 82 if (vp->v_type != VLNK) { in readlinkat() 88 error = VOP_GETATTR(vp, &vattr, 0, CRED(), NULL); in readlinkat() 90 VN_RELE(vp); in readlinkat() 106 error = VOP_READLINK(vp, &auio, CRED(), NULL); in readlinkat() 107 VN_RELE(vp); in readlinkat()
|
H A D | fcntl.c | 72 vnode_t *vp; in fcntl() local 238 vp = fp->f_vnode; in fcntl() 266 vp = fp->f_vnode; in fcntl() 516 if (vp->v_type != VREG) { in fcntl() 593 error = flock_check(vp, &bf, offset, maxoffset); in fcntl() 595 error = flock_check(vp, &bf, offset, MAXOFFSET_T); in fcntl() 599 if (vp->v_type == VREG && bf.l_len == 0 && in fcntl() 613 if (nbl_need_check(vp)) { in fcntl() 617 nbl_start_crit(vp, RW_READER); in fcntl() 626 if (nbl_conflict(vp, NBL_WRITE, begin, length, 0, in fcntl() [all …]
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_fs.c | 69 static int add_use_record(struct vfstab *vp); 283 struct vfstab vp; in load_vfstab() local 288 (void) memset(&vp, 0, sizeof (struct vfstab)); in load_vfstab() 289 while (getvfsent(fp, &vp) == 0) { in load_vfstab() 290 status = add_use_record(&vp); in load_vfstab() 295 (void) memset(&vp, 0, sizeof (struct vfstab)); in load_vfstab() 305 add_use_record(struct vfstab *vp) in add_use_record() argument 314 vfsp->special = strdup(vp->vfs_special); in add_use_record() 320 if (vp->vfs_mountp != NULL) { in add_use_record() 321 vfsp->mountp = strdup(vp->vfs_mountp); in add_use_record()
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sockstr.c | 396 stp = vp->v_stream; in so_basic_strinit() 1518 struct vnode *vp; in strsock_discon_ind() local 1533 vp = SOTOV(so); in strsock_discon_ind() 1668 so = VTOSO(vp); in strsock_proto() 2658 so = VTOSO(vp); in strsock_misc() 2836 struct vnode *vp, in sock_getmsg() argument 2857 vp = vp->v_stream->sd_vnode; in sock_getmsg() 2859 so = VTOSO(vp); in sock_getmsg() 2902 vp = vp->v_stream->sd_vnode; in sock_putmsg() 2904 so = VTOSO(vp); in sock_putmsg() [all …]
|
H A D | sockcommon.c | 452 struct vnode *vp; in sonode_constructor() local 455 if (vp == NULL) { in sonode_constructor() 458 vp->v_data = so; in sonode_constructor() 541 vn_free(vp); in sonode_destructor() 560 vnode_t *vp; in sonode_init() local 562 vp = SOTOV(so); in sonode_init() 606 vn_reinit(vp); in sonode_init() 629 vn_exists(vp); in sonode_init() 635 vnode_t *vp; in sonode_fini() local 653 vp = SOTOV(so); in sonode_fini() [all …]
|
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prsubr.c | 416 for (vp = p->p_plist; vp != NULL; vp = pnp->pr_next) { in prlwpexit() 425 for (vp = lep->le_trace; vp != NULL; vp = pnp->pr_next) { in prlwpexit() 536 for (; vp != NULL; vp = pnp->pr_next) { in prexecend() 550 for (; vp != NULL; vp = pnp->pr_next) { in prexecend() 611 for (vp = p->p_plist; vp != NULL; vp = pnp->pr_next) { in prinvalidate() 1924 vp != NULL && vp->v_type == VREG && in prgetmap() 2040 vp != NULL && vp->v_type == VREG && in prgetmap32() 2255 vp != NULL && vp->v_type == VREG && in prpdread() 2406 vp != NULL && vp->v_type == VREG && in prpdread32() 2638 if (vp->v_type != VCHR || vp->v_stream == NULL || vp->v_rdev == 0) in pristli() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | vuid_queue.c | 65 Vuid_q_node *vp; in vq_put() local 68 for (vp = vq->bottom; vp; vp = vp->prev) { in vq_put() 70 if (timercmp(&vp->firm_event.time, &firm_event->time, in vq_put() 72 tv_equal(vp->firm_event.time, firm_event->time)) { in vq_put() 80 vqn->next = vp->next; in vq_put() 81 vqn->prev = vp; in vq_put() 83 if (vp->next != VUID_Q_NODE_NULL) in vq_put() 84 vp->next->prev = vqn; in vq_put() 86 vp->next = vqn; in vq_put() 88 if (vp == vq->bottom) in vq_put()
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_thread.c | 267 VN_RELE(vp); in ufs_delete() 276 VN_RELE(vp); in ufs_delete() 386 vn_recycle(vp); in ufs_delete() 414 VN_RELE(vp); in ufs_delete() 696 vn_has_data = (vp->v_type != VCHR && vn_has_cached_data(vp)); in ufs_idle_free() 713 VN_RELE(vp); in ufs_idle_free() 753 ASSERT((vp->v_type == VCHR) || !vn_has_cached_data(vp)); in ufs_idle_free() 864 struct vnode *vp; in ufs_idle_some() local 893 vp = ITOV(ip); in ufs_idle_some() 894 VN_HOLD(vp); in ufs_idle_some() [all …]
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.dol.c | 347 struct varent *vp; in Dgetdol() local 403 vp = adrof(S_argv); in Dgetdol() 432 vp = adrof(S_argv); in Dgetdol() 433 if (vp == 0) { in Dgetdol() 434 vp = &nulargv; in Dgetdol() 453 vp = adrof(name); in Dgetdol() 463 if (vp == 0) { in Dgetdol() 477 upb = blklen(vp->vec); in Dgetdol() 503 setname(vp->v_name); in Dgetdol() 644 tchar **vp; in heredoc() local [all …]
|
/illumos-gate/usr/src/uts/common/cpr/ |
H A D | cpr_main.c | 263 if (error = VOP_IOCTL(vp, _FIOISLOG, in cpr_log_status() 265 mntpt = vfs_getmntpoint(vp->v_vfsp); in cpr_log_status() 274 mntpt = vfs_getmntpoint(vp->v_vfsp); in cpr_log_status() 294 mntpt = vfs_getmntpoint(vp->v_vfsp); in cpr_log_status() 333 vnode_t *vp; in cpr_ufs_logging() local 341 vfsp = vp->v_vfsp; in cpr_ufs_logging() 344 VN_RELE(vp); in cpr_ufs_logging() 350 VN_RELE(vp); in cpr_ufs_logging() 356 0600, &vp, CRCREAT, 0)) { in cpr_ufs_logging() 366 if (vp->v_vfsp != vfsp && vp->v_type == VREG) in cpr_ufs_logging() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getvfsent.c | 46 if ((vp->xx = (char *)strtok_r(ll, sepstr, tmp)) == NULL)\ 48 if (strcmp(vp->xx, dash) == 0)\ 49 vp->xx = NULL 51 if ((vp->xx = strtok(ll, sepstr)) == NULL)\ 53 if (strcmp(vp->xx, dash) == 0)\ 54 vp->xx = NULL 99 getvfsfile(FILE *fd, struct vfstab *vp, char *mountp) in getvfsfile() argument 105 return (getvfsany(fd, vp, &vv)); in getvfsfile() 169 getvfsent(FILE *fd, struct vfstab *vp) in getvfsent() argument
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit.c | 166 if (vp) { in audit_savepath() 178 audit_attributes(vp); in audit_savepath() 458 if (vp) { in audit_attributes() 658 stp = vp->v_stream; in audit_strgetmsg() 688 stp = vp->v_stream; in audit_strputmsg() 734 struct vnode *vp; in audit_closef() local 1111 vnode_t *vp; in audit_symlink_create() local 1128 VN_RELE(vp); in audit_symlink_create() 1627 audit_attributes(vp); in audit_fdsend() 1840 audit_attributes(vp); in audit_fdrecv() [all …]
|
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/ |
H A D | fake_getdents.c | 57 fake_getdents(vnode_t *vp, offset_t *offp, void *buf, size_t count) in fake_getdents() argument 73 if (vp->v_type != VDIR) { in fake_getdents() 86 (void) VOP_RWLOCK(vp, V_WRITELOCK_FALSE, NULL); in fake_getdents() 87 error = VOP_READDIR(vp, &auio, CRED(), &sink, NULL, 0); in fake_getdents() 88 VOP_RWUNLOCK(vp, V_WRITELOCK_FALSE, NULL); in fake_getdents()
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | fsck.c | 117 vfdup(struct vfstab *vp) in vfdup() argument 123 if ((vp->vfs_special != NULL) && in vfdup() 133 if ((vp->vfs_fsckdev != NULL) && in vfdup() 143 if ((vp->vfs_mountp != NULL) && in vfdup() 153 if ((vp->vfs_fstype != NULL) && in vfdup() 163 if ((vp->vfs_fsckpass != NULL) && in vfdup() 173 if ((vp->vfs_automnt != NULL) && in vfdup() 183 if ((vp->vfs_mntopts != NULL) && in vfdup() 189 *vp = vfsave; in vfdup() 200 return (vfdup(vp)); in mygetvfsent() [all …]
|
/illumos-gate/usr/src/uts/common/fs/objfs/ |
H A D | objfs_data.c | 175 objfs_data_lock(vnode_t *vp) in objfs_data_lock() argument 177 objfs_datanode_t *dnode = vp->v_data; in objfs_data_lock() 193 objfs_data_unlock(vnode_t *vp) in objfs_data_unlock() argument 445 objfs_datanode_t *dnode = vp->v_data; in objfs_create_data() 451 return (vp); in objfs_create_data() 462 if ((mp = objfs_data_lock(vp)) == NULL) in objfs_data_getattr() 467 vap->va_nodeid = gfs_file_inode(vp); in objfs_data_getattr() 473 (void) objfs_common_getattr(vp, vap); in objfs_data_getattr() 475 objfs_data_unlock(vp); in objfs_data_getattr() 563 objfs_datanode_t *dnode = vp->v_data; in objfs_data_read() [all …]
|
/illumos-gate/usr/src/uts/common/exec/shbin/ |
H A D | shbin.c | 53 struct vnode *vp, 133 checkshbinmagic(struct vnode *vp) in checkshbinmagic() argument 143 if (error = vn_rdwr(UIO_READ, vp, linep, sizeof (linep), (offset_t)0, in checkshbinmagic() 155 struct vnode *vp, in shbinexec() argument 187 if (error = checkshbinmagic(vp)) in shbinexec() 242 if (error = execopen(&vp, &fd)) in shbinexec() 256 (void) VOP_CLOSE(vp, FREAD, 1, (offset_t)0, cred, NULL); in shbinexec()
|
/illumos-gate/usr/src/uts/common/klm/ |
H A D | nlm_service.c | 174 vnode_t *vp; in lm_fhtovp() local 187 return (vp); in lm_fhtovp() 233 vnode_t *vp; in nlm_fh_to_vhold() local 237 if (vp == NULL) in nlm_fh_to_vhold() 248 VN_RELE(vp); in nlm_fh_to_vhold() 440 if (vp != NULL) in nlm_do_test() 441 VN_RELE(vp); in nlm_do_test() 982 if (vp == NULL) in nlm_do_unlock() 1007 if (vp != NULL) in nlm_do_unlock() 1008 VN_RELE(vp); in nlm_do_unlock() [all …]
|
/illumos-gate/usr/src/cmd/tip/aculib/ |
H A D | v831.c | 167 struct vaconfig *vp; in dialit() local 178 for (vp = vaconfig; vp->vc_name; vp++) in dialit() 179 if (strcmp(vp->vc_name, acu) == 0) in dialit() 181 if (vp->vc_name == 0) { in dialit() 198 pc(vp->vc_rack); in dialit() 199 pc(vp->vc_modem); in dialit()
|