Home
last modified time | relevance | path

Searched refs:vp (Results 151 – 175 of 557) sorted by relevance

12345678910>>...23

/illumos-gate/usr/src/contrib/ast/src/lib/libast/stdio/
H A D_stdfun.c52 _stdfun(Sfio_t* f, Funvec_t* vp) in _stdfun() argument
63 if (!vp->vec[1]) in _stdfun()
70 if (bp && (vp->vec[1] = (Fun_f)dlsym(bp, vp->name))) in _stdfun()
74 if (!(vp->vec[1] = (Fun_f)dlsym(np, vp->name))) in _stdfun()
/illumos-gate/usr/src/uts/common/io/vscan/
H A Dvscan_svc.c437 vnode_t *vp = NULL; in vscan_svc_get_vnode() local
447 return (vp); in vscan_svc_get_vnode()
465 if ((vp == NULL) || (vp->v_path == vn_vpath_empty) || cr == NULL) in vscan_svc_scan_file()
849 vnode_t *vp; in vscan_svc_process_scan_result() local
870 vp = node->vsn_req->vsr_vp; in vscan_svc_process_scan_result()
922 vnode_t *vp; in vscan_svc_getattr() local
981 vnode_t *vp; in vscan_svc_setattr() local
1083 ASSERT(vp != NULL); in vscan_svc_exempt_file()
1293 if ((req->vsr_vp == vp) && in vscan_svc_reql_find()
1323 VN_HOLD(vp); in vscan_svc_reql_insert()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dacctctl.c105 if (vp == NULL) in ac_file_in_use()
153 vnode_t *vp; in ac_file_set() local
225 VN_RELE(vp); in ac_file_set()
228 VN_RELE(vp); in ac_file_set()
253 VN_RELE(vp); in ac_file_set()
267 info->ac_vnode = vp; in ac_file_set()
268 vp = oldvp; in ac_file_set()
274 vp = NULL; in ac_file_set()
276 if (vp) { in ac_file_set()
281 VN_RELE(vp); in ac_file_set()
[all …]
H A Dopen.c64 vnode_t *vp, *sdvp; in copen() local
126 startvp = vp; in copen()
219 &vp, CRCREAT, PTOU(curproc)->u_cmask, in copen()
225 if ((vp->v_flag & VDUP) == 0) { in copen()
226 fp->f_vnode = vp; in copen()
246 dupfd = getminor(vp->v_rdev); in copen()
247 type = vp->v_type; in copen()
248 mutex_enter(&vp->v_lock); in copen()
249 vp->v_flag &= ~VDUP; in copen()
250 mutex_exit(&vp->v_lock); in copen()
[all …]
H A Dutssys.c300 if (llp->ll_vp == vp) { in proc_has_nbmand_on_vp()
349 vnode_t *vp; in dofusers() local
394 ((vp = fp->f_vnode) == NULL)) { in dofusers()
413 if (!fvp_isdev && VN_CMP(fvp, vp)) in dofusers()
424 (fvp->v_rdev == vp->v_rdev)) in dofusers()
493 vp = prp->p_sessp->s_vp; in dofusers()
494 if (vp != NULL) { in dofusers()
495 if (fvp->v_rdev == vp->v_rdev) in dofusers()
542 vp = NULL; in dofusers()
544 (vp == NULL)) in dofusers()
[all …]
H A Dmount.c68 vnode_t *vp = NULL; in mount() local
97 if (error = lookupname(uap->dir, UIO_USERSPACE, FOLLOW, NULLVPP, &vp)) in mount()
105 if ((vp->v_flag & VPXFS) && ((uap->flags & MS_GLOBAL) != MS_GLOBAL)) { in mount()
123 error = domount("pxfs", uap, vp, CRED(), &vfsp); in mount()
128 error = domount(NULL, uap, vp, CRED(), &vfsp); in mount()
132 VN_RELE(vp); in mount()
/illumos-gate/usr/src/uts/common/os/
H A Dflock.c297 vnode_t *vp; in ofdlock() local
315 vp = fp->f_vnode; in ofdlock()
355 lock_request->l_vnode = vp; in ofdlock()
391 nbl_need_check(vp)) { in ofdlock()
440 nbl_end_crit(vp); in ofdlock()
462 vnode_t *vp; in ofdcleanlock() local
471 vp = fp->f_vnode; in ofdcleanlock()
694 VOP_RWUNLOCK(vp, in reclock()
770 (void) VOP_RWLOCK(vp, in reclock()
3688 if (vp == NULL) { in get_lock_list()
[all …]
H A Dexec.c157 if (vp->v_path != NULL && vp->v_path != vn_vpath_empty) { in exece()
162 VN_RELE(vp); in exece()
178 VN_RELE(vp); in exece()
185 VN_RELE(vp); in exece()
277 VN_HOLD(vp); in exec_common()
332 VN_RELE(vp); in exec_common()
350 VN_RELE(vp); in exec_common()
408 VN_RELE(vp); in exec_common()
532 VN_RELE(vp); in exec_common()
684 vp = *vpp; in gexec()
[all …]
H A Ddriver_lyr.c95 #define LH_HASH(vp) (handle_hash_func(vp) % LH_HASH_SZ) argument
406 VN_HOLD(vp); in handle_alloc()
529 vnode_t *vp; in ldi_vp_from_dev() local
542 *vpp = vp; in ldi_vp_from_dev()
620 *vpp = vp; in ldi_vp_from_name()
734 *vpp = vp; in ldi_vp_from_devid()
750 vp = *vpp; in ldi_open_by_vp()
785 *vpp = vp; in ldi_open_by_vp()
1633 VN_RELE(vp); in ldi_open_by_dev()
1658 VN_RELE(vp); in ldi_open_by_name()
[all …]
H A Dcore.c155 if (vp == NULL) in remove_core_file()
157 else if (vp->v_type != VREG) in remove_core_file()
163 if (nbl_need_check(vp)) { in remove_core_file()
176 if (vp != NULL) { in remove_core_file()
178 nbl_end_crit(vp); in remove_core_file()
179 VN_RELE(vp); in remove_core_file()
196 vnode_t *vp; in create_core_file() local
273 VN_RELE(vp); in create_core_file()
277 *vpp = vp; in create_core_file()
332 vnode_t *vp; in do_core() local
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A D_xftw.c135 int depth, struct Var *vp) in fwalk() argument
145 vp->level++; in fwalk()
154 if (nocdstat(path, &sb, vp, 0) < 0) { in fwalk()
157 if ((nocdstat(path, &sb, vp, AT_SYMLINK_NOFOLLOW) != -1) && in fwalk()
180 dirp = nocdopendir(path, vp); in fwalk()
241 rc = fwalk(subpath, fn, depth-1, vp); in fwalk()
253 dirp = nocdopendir(path, vp); in fwalk()
272 nocdopendir(const char *path, struct Var *vp) in nocdopendir() argument
279 if ((vp->odepth > 1) && (fdd == NULL) && (errno == ENAMETOOLONG)) { in nocdopendir()
319 nocdstat(const char *path, struct stat *statp, struct Var *vp, int sym) in nocdstat() argument
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/
H A Dasn1.c666 pdu_varlist_t *vp = varlistp; in asn_parse_objval() local
672 if (vp->type == ASN_EXT_TAG) in asn_parse_objval()
682 if (vp->val.iptr == NULL) in asn_parse_objval()
686 free(vp->val.iptr); in asn_parse_objval()
689 vp->val_len = sizeof (int); in asn_parse_objval()
695 if (vp->val.uiptr == NULL) in asn_parse_objval()
699 free(vp->val.uiptr); in asn_parse_objval()
703 vp->type = msg[0]; in asn_parse_objval()
708 p = asn_parse_string(msg, varsz_p, &vp->val.str, &vp->val_len); in asn_parse_objval()
733 vp->type = msg[0]; in asn_parse_objval()
[all …]
/illumos-gate/usr/src/uts/common/fs/ctfs/
H A Dctfs_root.c327 vnode_t *vp; in ctfs_root() local
330 VN_HOLD(vp); in ctfs_root()
331 *vpp = vp; in ctfs_root()
386 vap->va_fsid = vp->v_vfsp->vfs_dev; in ctfs_common_getattr()
387 vap->va_nodeid = gfs_file_inode(vp); in ctfs_common_getattr()
415 vnode_t *vp, in ctfs_close() argument
431 vnode_t *vp, in ctfs_access_dir() argument
449 vnode_t *vp, in ctfs_access_readonly() argument
467 vnode_t *vp, in ctfs_access_readwrite() argument
485 vnode_t *vp, in ctfs_root_getattr() argument
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_recovery.c650 if (vp == NULL) in nfs4_check_recov_err()
654 rp = VTOR4(vp); in nfs4_check_recov_err()
1161 rp = VTOR4(vp); in nfs4_wait_for_delay()
2157 rootvp = vp; in recov_stale()
2229 rp = VTOR4(vp); in relock_file()
2324 vp, NULL); in reclaim_one_lock()
2716 vnode_t *vp; in resend_one_op() local
2809 VN_RELE(vp); in resend_one_op()
2947 nfs4_send_siglost(lrp->lr_flk->l_pid, VTOMI4(vp), vp, FALSE, in resend_lock()
2970 vnode_t *vp; in flush_reinstate() local
[all …]
H A Dnfs_export.c1246 vnode_t *vp; in exportfs() local
1869 VN_RELE(vp); in exportfs()
1995 vnode_t *vp; in nfs_getfh() local
2144 VN_RELE(vp); in nfs_getfh()
2165 ASSERT(vp); in nfs_vptoexi()
2166 VN_HOLD(vp); in nfs_vptoexi()
2189 exi = checkexport4(&vp->v_vfsp->vfs_fsid, &fid, vp); in nfs_vptoexi()
2206 if ((vp->v_flag & VROOT) || VN_IS_CURZONEROOT(vp)) { in nfs_vptoexi()
2225 vp = dvp; in nfs_vptoexi()
2692 if (vp->v_type == VNON && vp->v_flag & V_XATTRDIR) in nfs4_fhtovp()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_vnops.c1835 vnode_t *vp; in zfs_remove() local
1947 VN_RELE(vp); in zfs_remove()
1984 vp->v_count == 1 && !vn_has_cached_data(vp) && in zfs_remove()
2035 VN_RELE(vp); in zfs_remove()
2254 vnode_t *vp; in zfs_rmdir() local
2352 VN_RELE(vp); in zfs_rmdir()
2668 (vp->v_type == VREG) && !(IS_SWAPVP(vp))) in zfs_fsync()
3080 (vp->v_type != VREG && vp->v_type != VDIR)) { in zfs_setattr()
3099 (vp->v_type != VREG && vp->v_type != VDIR))) { in zfs_setattr()
5196 vn_a.vp = vp; in zfs_map()
[all …]
/illumos-gate/usr/src/uts/common/ktli/
H A Dt_kutil.c75 vnode_t *vp; in tli_send() local
78 vp = tiptr->fp->f_vnode; in tli_send()
83 error = kstrputmsg(vp, bp, NULL, 0, 0, MSG_BAND | MSG_HOLDSIG, fmode); in tli_send()
90 vnode_t *vp; in tli_recv() local
97 vp = tiptr->fp->f_vnode; in tli_recv()
106 error = kstrgetmsg(vp, bp, NULL, &pri, &pflag, timout, &rval); in tli_recv()
205 vnode_t *vp; in t_kadvise() local
211 vp = fp->f_vnode; in t_kadvise()
238 (void) kstrputmsg(vp, mp, NULL, 0, 0, in t_kadvise()
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_inode.c168 struct vnode *vp; in ud_iget() local
202 vp = ITOV(ip); in ud_iget()
203 VN_HOLD(vp); in ud_iget()
265 vp = ITOV(ip); in ud_iget()
290 VN_HOLD(vp); in ud_iget()
342 vn_free(vp); in ud_iget()
924 vn_exists(vp); in ud_iget()
958 vp = ITOV(ip); in ud_iinactive()
1000 vn_free(vp); in ud_iinactive()
1147 vn_free(vp); in ud_iinactive()
[all …]
/illumos-gate/usr/src/lib/libfsmgt/common/
H A Dfs_mount_defaults.c256 struct vfstab *vp; in fs_edit_mount_defaults() local
264 vp = &vfstabp; in fs_edit_mount_defaults()
280 vp->vfs_special = (char *)strtok_r( in fs_edit_mount_defaults()
282 vp->vfs_fsckdev = (char *)strtok_r( in fs_edit_mount_defaults()
284 vp->vfs_mountp = (char *)strtok_r( in fs_edit_mount_defaults()
286 vp->vfs_fstype = (char *)strtok_r( in fs_edit_mount_defaults()
290 vp->vfs_automnt = (char *)strtok_r( in fs_edit_mount_defaults()
368 struct vfstab *vp; in fs_del_mount_default_ent() local
374 vp = &vfstabp; in fs_del_mount_default_ent()
408 vp->vfs_mountp = (char *)strtok_r( in fs_del_mount_default_ent()
[all …]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_log.c40 ufs_fiologenable(vnode_t *vp, fiolog_t *ufl, cred_t *cr, int flags) in ufs_fiologenable() argument
50 error = lufs_enable(vp, &fl, cr); in ufs_fiologenable()
59 ufs_fiologdisable(vnode_t *vp, fiolog_t *ufl, cred_t *cr, int flags) in ufs_fiologdisable() argument
69 error = lufs_disable(vp, &fl); in ufs_fiologdisable()
82 ufs_fioislog(vnode_t *vp, uint32_t *islog, cred_t *cr, int flags) in ufs_fioislog() argument
84 ufsvfs_t *ufsvfsp = VTOI(vp)->i_ufsvfs; in ufs_fioislog()
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_ptsops.c219 struct vnode *vp; in devpts_prunedir() local
250 vp = SDEVTOV(dv); in devpts_prunedir()
251 if (vp->v_count > 0) in devpts_prunedir()
331 struct vnode *vp; in devpts_create() local
340 else if (vp->v_type == VDIR && (mode & VWRITE)) in devpts_create()
343 error = VOP_ACCESS(vp, mode, 0, cred, ct); in devpts_create()
346 VN_RELE(vp); in devpts_create()
348 *vpp = vp; in devpts_create()
385 devpts_setattr(struct vnode *vp, struct vattr *vap, int flags, in devpts_setattr() argument
388 ASSERT((vp->v_type == VCHR) || (vp->v_type == VDIR)); in devpts_setattr()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dwritev.c61 __writev(fd, vp, vpcount) in __writev() argument
63 const struct iovec *vp;
69 int written = write(fd, vp->iov_base, vp->iov_len);
74 if (written != vp->iov_len)
76 vp++;
/illumos-gate/usr/src/uts/common/fs/portfs/
H A Dport_vnops.c163 pp = VTOEP(vp); in port_close()
284 port_poll(vnode_t *vp, short events, int anyyet, short *reventsp, in port_poll() argument
291 pp = VTOEP(vp); in port_poll()
319 pp = VTOEP(vp); in port_getattr()
321 vap->va_type = vp->v_type; /* vnode type (for create) */ in port_getattr()
327 vap->va_nlink = vp->v_count; /* number of references to file */ in port_getattr()
347 port_t *pp = VTOEP(vp); in port_inactive()
355 vn_free(vp); in port_inactive()
364 port_access(struct vnode *vp, int mode, int flags, cred_t *cr, in port_access() argument
372 port_realvp(vnode_t *vp, vnode_t **vpp, caller_context_t *ct) in port_realvp() argument
[all …]
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf_notes.c330 error = elfnote(vp, &offset, NT_PRPRIV, psize, in write_elfnotes()
343 error = elfnote(vp, &offset, NT_ZONENAME, in write_elfnotes()
413 error = elfnote(vp, &offset, NT_FDINFO, in write_elfnotes()
442 error = elfnote(vp, &offset, NT_FDINFO, in write_elfnotes()
458 error = elfnote(vp, &offset, NT_LDT, ssdsize, in write_elfnotes()
499 error = elfnote(vp, &offset, NT_LWPSINFO, in write_elfnotes()
532 error = elfnote(vp, &offset, NT_LWPSTATUS, in write_elfnotes()
555 error = elfnote(vp, &offset, NT_GWINDOWS, in write_elfnotes()
567 error = elfnote(vp, &offset, NT_ASRS, in write_elfnotes()
577 error = elfnote(vp, &offset, NT_PRXREG, in write_elfnotes()
[all …]
/illumos-gate/usr/src/uts/common/nfs/
H A Dnfs_clnt.h188 vnode_t *vp; member
251 struct vnode *vp; member
447 #define VTOMI(vp) ((mntinfo_t *)(((vp)->v_vfsp)->vfs_data)) argument
522 #define PURGE_ATTRCACHE(vp) { \ argument
523 rnode_t *rp = VTOR(vp); \
538 #define ATTRCACHE_VALID(vp) (gethrtime() < VTOR(vp)->r_attrtime) argument
550 #define PURGE_STALE_FH(error, vp, cr) \ argument
552 struct rnode *rp = VTOR(vp); \
553 if (vp->v_flag & VROOT) { \
564 if (vn_has_cached_data(vp)) \
[all …]

12345678910>>...23