Home
last modified time | relevance | path

Searched refs:vp (Results 1 – 25 of 549) sorted by relevance

12345678910>>...22

/titanic_41/usr/src/uts/common/fs/lofs/
H A Dlofs_vnops.c53 vnode_t *vp = *vpp; in lo_open() local
60 vp, vp->v_count, realvp(vp), realvp(vp)->v_count); in lo_open()
63 oldvp = vp; in lo_open()
64 vp = rvp = realvp(vp); in lo_open()
69 VN_HOLD(vp); in lo_open()
72 if (!error && rvp != vp) { in lo_open()
105 vnode_t *vp, in lo_close() argument
113 lo_dprint(4, "lo_close vp %p realvp %p\n", vp, realvp(vp)); in lo_close()
115 vp = realvp(vp); in lo_close()
116 return (VOP_CLOSE(vp, flag, count, offset, cr, ct)); in lo_close()
[all …]
/titanic_41/usr/src/lib/libshell/common/edit/
H A Dvi.c48 # define echoctl (vp->ed->e_echoctl)
140 #define editb (*vp->ed)
143 #define putchar(c) ed_putchar(vp->ed,c)
222 register Vi_t *vp = ed->e_vi; in ed_viread() local
240 if(!vp) in ed_viread()
242 ed->e_vi = vp = newof(0,Vi_t,1,0); in ed_viread()
243 vp->lastline = (genchar*)malloc(MAXLINE*CHARSIZE); in ed_viread()
244 vp->direction = -1; in ed_viread()
245 vp->ed = ed; in ed_viread()
251 ed_setup(vp->ed,fd, reedit); in ed_viread()
[all …]
/titanic_41/usr/src/cmd/csh/
H A Dsh.exp.c100 exp(tchar ***vp) in exp() argument
106 return (exp0(vp, 0)); in exp()
110 exp0(tchar ***vp, bool ignore) in exp0() argument
112 int p1 = exp1(vp, ignore); in exp0()
118 etraci("exp0 p1", p1, vp); in exp0()
120 if (**vp && eq(**vp, S_BARBAR /* "||" */)) { in exp0()
123 (*vp)++; in exp0()
124 p2 = exp0(vp, (ignore&IGNORE) || p1); in exp0()
126 etraci("exp0 p2", p2, vp); in exp0()
134 exp1(tchar ***vp, bool ignore) in exp1() argument
[all …]
H A Dsh.set.c43 tchar *vp, op; in doset() local
65 for (vp = p; alnum(*p); p++) in doset()
67 if (vp == p || !letter(*vp)) in doset()
69 if ((p - vp) > MAX_VAR_LEN) in doset()
102 set1(vp, vecp, &shvhed); in doset()
107 asx(vp, subscr, retp); in doset()
111 set(vp, savestr(p)); in doset()
112 if (eq(vp, S_path /* "path" */)) { in doset()
115 } else if (eq(vp, S_histchars /* "histchars" */)) { in doset()
119 } else if (eq(vp, S_user /* "user" */)) in doset()
[all …]
/titanic_41/usr/src/cmd/oawk/
H A Dtran.c193 setfval(CELL *vp, awkfloat f) in setfval() argument
195 dprintf("setfval: %o %g\n", vp, f, NULL); in setfval()
197 if (vp->tval & ARR) in setfval()
198 error(FATAL, "illegal reference to array %s", vp->nval); in setfval()
199 if ((vp->tval & (NUM | STR)) == 0) in setfval()
200 error(FATAL, "funny variable %o: %ws %ws %g %o", vp, vp->nval, in setfval()
201 vp->sval, vp->fval, vp->tval); in setfval()
203 if (vp == recloc) in setfval()
205 vp->tval &= ~STR; /* mark string invalid */ in setfval()
206 vp->tval |= NUM; /* mark number ok */ in setfval()
[all …]
/titanic_41/usr/src/lib/libshell/common/sh/
H A Denv.c90 register Evar_t *vp; in env_get() local
103 for(vp=(Evar_t*)dtfirst(ep->dt);vp; vp=(Evar_t*)dtnext(ep->dt,vp)) in env_get()
105 vp->index = (n<<ENV_BITS) | (vp->index&((1<<ENV_BITS)-1)); in env_get()
106 ep->env[n++] = vp->un.ptr; in env_get()
122 Evar_t *vp = (Evar_t*)dtmatch(ep->dt,(void*)str); in env_add() local
123 if(vp && strcmp(str,vp->un.ptr)==0) in env_add()
127 if(vp) in env_add()
129 if(vp->index&ENV_PMALLOC) in env_add()
130 free((void*)vp->un.ptr); in env_add()
131 vp->un.ptr = (char*)str; in env_add()
[all …]
H A Dstreval.c90 #define getchr(vp) (*(vp)->nextchr++) argument
91 #define peekchr(vp) (*(vp)->nextchr) argument
92 #define ungetchr(vp) ((vp)->nextchr--) argument
111 #define ERROR(vp,msg) return(seterror((vp),msg)) argument
116 static int _seterror(struct vars *vp,const char *msg) in _seterror() argument
118 if(!vp->errmsg.value) in _seterror()
119 vp->errmsg.value = (char*)msg; in _seterror()
120 vp->errchr = vp->nextchr; in _seterror()
121 vp->nextchr = ""; in _seterror()
427 static int gettok(register struct vars *vp) in gettok() argument
[all …]
/titanic_41/usr/src/uts/common/fs/
H A Dvnode.c71 #define ISROFILE(vp) \ argument
72 ((vp)->v_type != VCHR && (vp)->v_type != VBLK && \
73 (vp)->v_type != VFIFO && vn_is_readonly(vp))
159 #define VOPSTATS_UPDATE(vp, counter) { \ argument
160 vfs_t *vfsp = (vp)->v_vfsp; \
162 (vfsp->vfs_flag & VFS_STATS) && (vp)->v_type != VBAD) { \
167 __dtrace_probe___fsinfo_##counter(vp, 0, stataddr); \
175 #define VOPSTATS_UPDATE_IO(vp, counter, bytecounter, bytesval) { \ argument
176 vfs_t *vfsp = (vp)->v_vfsp; \
178 (vfsp->vfs_flag & VFS_STATS) && (vp)->v_type != VBAD) { \
[all …]
H A Dlookup.c147 vnode_t *vp; /* current directory vp */ in lookuppnatcred() local
161 vp = rootvp; in lookuppnatcred()
163 vp = (startvp == NULL) ? PTOU(p)->u_cdir : startvp; in lookuppnatcred()
165 VN_HOLD(vp); in lookuppnatcred()
179 compvpp, rootvp, vp, cr)); in lookuppnatcred()
218 vnode_t *vp, /* directory to start search at */ in lookuppnvp() argument
248 audit_anchorpath(pnp, vp == rootvp); in lookuppnvp()
260 startvp = vp; in lookuppnvp()
267 if (vp->v_type != VDIR) { in lookuppnvp()
272 if (rpnp && VN_CMP(vp, rootvp)) in lookuppnvp()
[all …]
H A Dgfs.c460 vnode_t *vp; in gfs_file_create() local
466 vp = vn_alloc(KM_SLEEP); in gfs_file_create()
471 fp->gfs_vnode = vp; in gfs_file_create()
473 vp->v_data = fp; in gfs_file_create()
480 vn_setops(vp, ops); in gfs_file_create()
482 VN_SET_VFS_TYPE_DEV(vp, pvp->v_vfsp, VREG, 0); in gfs_file_create()
486 return (vp); in gfs_file_create()
519 vnode_t *vp; in gfs_dir_create() local
523 vp = gfs_file_create(struct_size, pvp, ops); in gfs_dir_create()
524 vp->v_type = VDIR; in gfs_dir_create()
[all …]
/titanic_41/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dvncache.c57 struct vnode *vp; in vn_cache_constructor() local
59 vp = buf; in vn_cache_constructor()
60 bzero(vp, sizeof (*vp)); in vn_cache_constructor()
62 mutex_init(&vp->v_lock, NULL, MUTEX_DEFAULT, NULL); in vn_cache_constructor()
63 vp->v_fd = -1; in vn_cache_constructor()
72 struct vnode *vp; in vn_cache_destructor() local
74 vp = buf; in vn_cache_destructor()
76 mutex_destroy(&vp->v_lock); in vn_cache_destructor()
84 vn_recycle(vnode_t *vp) in vn_recycle() argument
87 ASSERT(vp->v_fd == -1); in vn_recycle()
[all …]
H A Dfake_vop.c78 vnode_t *vp, in fop_close() argument
92 if ((vp->v_type == VREG) && (count == 1)) { in fop_close()
94 ASSERT(vp->v_rdcnt > 0); in fop_close()
95 atomic_add_32(&(vp->v_rdcnt), -1); in fop_close()
98 ASSERT(vp->v_wrcnt > 0); in fop_close()
99 atomic_add_32(&(vp->v_wrcnt), -1); in fop_close()
108 vnode_t *vp, in fop_read() argument
125 (void) fstat(vp->v_fd, &st); in fop_read()
144 n = pread(vp->v_fd, iov->iov_base, cnt, uio->uio_loffset); in fop_read()
163 vnode_t *vp, in fop_write() argument
[all …]
/titanic_41/usr/src/uts/common/sys/
H A Dvfstab.h43 #define vfsnull(vp) ((vp)->vfs_special = (vp)->vfs_fsckdev = \ argument
44 (vp)->vfs_mountp = (vp)->vfs_fstype = \
45 (vp)->vfs_fsckpass = (vp)->vfs_automnt = \
46 (vp)->vfs_mntopts = NULL)
48 #define putvfsent(fd, vp)\ argument
50 (vp)->vfs_special ? (vp)->vfs_special : "-", \
51 (vp)->vfs_fsckdev ? (vp)->vfs_fsckdev : "-", \
52 (vp)->vfs_mountp ? (vp)->vfs_mountp : "-", \
53 (vp)->vfs_fstype ? (vp)->vfs_fstype : "-", \
54 (vp)->vfs_fsckpass ? (vp)->vfs_fsckpass : "-", \
[all …]
/titanic_41/usr/src/lib/libc/port/gen/
H A Dnftw.c173 int depth, struct Save *last, struct Var *vp) in walk() argument
192 if ((vp->curflags & FTW_CHDIR) && last) in walk()
195 comp = vp->tmppath; in walk()
197 if (vp->savedstatf == NULL) in walk()
198 vp->savedstatf = vp->statf; in walk()
200 if ((vp->walklevel++ == 0) && (vp->curflags & FTW_HOPTION)) { in walk()
201 if (((vp->curflags & FTW_CHDIR) == 0) && (depth >= 2)) { in walk()
202 vp->statf = nocdstat; in walk()
204 vp->statf = cdstat; in walk()
207 vp->statf = vp->savedstatf; in walk()
[all …]
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs_acl_srv.c83 vnode_t *vp; in acl2_getacl() local
86 vp = nfs_fhtovp(&args->fh, exi); in acl2_getacl()
87 if (vp == NULL) { in acl2_getacl()
96 error = VOP_GETSECATTR(vp, &resp->resok.acl, 0, cr, NULL); in acl2_getacl()
114 error = fs_fab_acl(vp, &resp->resok.acl, 0, cr, NULL); in acl2_getacl()
118 VN_RELE(vp); in acl2_getacl()
124 error = rfs4_delegated_getattr(vp, &va, 0, cr); in acl2_getacl()
126 VN_RELE(vp); in acl2_getacl()
197 vnode_t *vp; in acl2_setacl() local
200 vp = nfs_fhtovp(&args->fh, exi); in acl2_setacl()
[all …]
H A Dnfs4_rnode.c172 nfs4_dross_pages(vnode_t *vp) in nfs4_dross_pages() argument
177 vphm = page_vnode_mutex(vp); in nfs4_dross_pages()
179 if ((pp = vp->v_pages) != NULL) { in nfs4_dross_pages()
186 } while ((pp = pp->p_vpnext) != vp->v_pages); in nfs4_dross_pages()
199 vnode_t *vp; in r4flushpages() local
216 vp = RTOV4(rp); in r4flushpages()
217 if (nfs4_has_pages(vp)) { in r4flushpages()
218 ASSERT(vp->v_type != VCHR); in r4flushpages()
220 error = VOP_PUTPAGE(vp, (u_offset_t)0, 0, 0, cr, NULL); in r4flushpages()
228 nfs4_invalidate_pages(vp, (u_offset_t)0, cr); in r4flushpages()
[all …]
/titanic_41/usr/src/cmd/awk/
H A Dtran.c325 setfval(Cell *vp, Awkfloat f) in setfval() argument
329 if ((vp->tval & (NUM | STR)) == 0) in setfval()
330 funnyvar(vp, "assign to"); in setfval()
331 if (vp->tval & FLD) { in setfval()
333 i = fldidx(vp); in setfval()
337 } else if (vp->tval & REC) { in setfval()
341 vp->tval &= ~STR; /* mark string invalid */ in setfval()
342 vp->tval |= NUM; /* mark number ok */ in setfval()
343 dprintf(("setfval %p: %s = %g, t=%p\n", (void *)vp, in setfval()
344 vp->nval ? vp->nval : (unsigned char *)"NULL", in setfval()
[all …]
/titanic_41/usr/src/uts/common/fs/doorfs/
H A Ddoor_vnops.c43 static int door_close(struct vnode *vp, int flag, int count,
45 static int door_getattr(struct vnode *vp, struct vattr *vap,
47 static void door_inactive(struct vnode *vp, struct cred *cr,
49 static int door_access(struct vnode *vp, int mode, int flags,
51 static int door_realvp(vnode_t *vp, vnode_t **vpp, caller_context_t *ct);
104 struct vnode *vp, in door_close() argument
112 door_node_t *dp = VTOD(vp); in door_close()
131 if (count == 2 && vp->v_count == 1 && in door_close()
148 door_getattr(struct vnode *vp, struct vattr *vap, int flags, struct cred *cr, in door_getattr() argument
155 vap->va_type = vp->v_type; /* vnode type (for create) */ in door_getattr()
[all …]
/titanic_41/usr/src/cmd/mailx/
H A Dvars.c61 register struct var *vp; in assign() local
70 vp = lookup(name); in assign()
71 if (vp == NOVAR) { in assign()
72 if ((vp = (struct var *) in assign()
73 calloc(sizeof (*vp), 1)) == NULL) in assign()
75 vp->v_name = vcopy(name); in assign()
76 vp->v_link = variables[h]; in assign()
77 variables[h] = vp; in assign()
79 vfree(vp->v_value); in assign()
80 vp->v_value = vcopy(value); in assign()
[all …]
/titanic_41/usr/src/uts/common/fs/pcfs/
H A Dpc_node.c93 struct vnode *vp; in pc_getnode() local
145 vp = vn_alloc(KM_SLEEP); in pc_getnode()
146 pcp->pc_vn = vp; in pc_getnode()
155 vn_setops(vp, pcfs_dvnodeops); in pc_getnode()
156 vp->v_type = VDIR; in pc_getnode()
158 vp->v_flag = VROOT; in pc_getnode()
186 vn_setops(vp, pcfs_fvnodeops); in pc_getnode()
187 vp->v_type = VREG; in pc_getnode()
188 vp->v_flag = VNOSWAP; in pc_getnode()
194 vp->v_data = (caddr_t)pcp; in pc_getnode()
[all …]
/titanic_41/usr/src/uts/common/syscall/
H A Drw.c80 register vnode_t *vp; in read() local
96 vp = fp->f_vnode; in read()
98 if (vp->v_type == VREG && cnt == 0) { in read()
110 if (nbl_need_check(vp)) { in read()
113 nbl_start_crit(vp, RW_READER); in read()
115 error = nbl_svmand(vp, fp->f_cred, &svmand); in read()
118 if (nbl_conflict(vp, NBL_READ, fp->f_offset, cnt, svmand, in read()
125 (void) VOP_RWLOCK(vp, rwflag, NULL); in read()
139 if (fileoff >= OFFSET_MAX(fp) && (vp->v_type == VREG)) { in read()
142 if ((error = VOP_GETATTR(vp, &va, 0, fp->f_cred, NULL))) { in read()
[all …]
H A Dchdir.c70 vnode_t *vp; in chdir() local
75 if (error = lookupname(fname, UIO_USERSPACE, FOLLOW, NULLVPP, &vp)) { in chdir()
81 error = chdirec(vp, 0, 1); in chdir()
96 vnode_t *vp; in fchdir() local
102 vp = fp->f_vnode; in fchdir()
103 VN_HOLD(vp); in fchdir()
105 error = chdirec(vp, 0, 0); in fchdir()
117 vnode_t *vp; in chroot() local
122 if (error = lookupname(fname, UIO_USERSPACE, FOLLOW, NULLVPP, &vp)) { in chroot()
128 error = chdirec(vp, 1, 1); in chroot()
[all …]
/titanic_41/usr/src/uts/common/fs/sockfs/
H A Dsockcommon_vnops.c118 struct vnode *vp = *vpp; in socket_vop_open() local
119 struct sonode *so = VTOSO(vp); in socket_vop_open()
127 ASSERT(vp->v_type == VSOCK); in socket_vop_open()
134 socket_vop_close(struct vnode *vp, int flag, int count, offset_t offset, in socket_vop_close() argument
140 so = VTOSO(vp); in socket_vop_close()
141 ASSERT(vp->v_type == VSOCK); in socket_vop_close()
143 cleanlocks(vp, ttoproc(curthread)->p_pid, 0); in socket_vop_close()
144 cleanshares(vp, ttoproc(curthread)->p_pid); in socket_vop_close()
146 if (vp->v_stream) in socket_vop_close()
147 strclean(vp); in socket_vop_close()
[all …]
/titanic_41/usr/src/uts/common/fs/dcfs/
H A Ddc_vnops.c111 #define DCHASH(vp) (((uintptr_t)(vp) >> DCSHFT) & (DCTABLESIZE - 1)) argument
113 #define DCHASH(vp) (((uintptr_t)(vp) >> DCSHFT) % DTABLESIZEC) argument
253 dc_close(struct vnode *vp, int flag, int count, offset_t off, in dc_close() argument
256 (void) cleanlocks(vp, ttoproc(curthread)->p_pid, 0); in dc_close()
257 cleanshares(vp, ttoproc(curthread)->p_pid); in dc_close()
263 dc_read(struct vnode *vp, struct uio *uiop, int ioflag, struct cred *cr, in dc_read() argument
266 struct dcnode *dp = VTODC(vp); in dc_read()
289 base = segmap_getmapflt(segkmap, vp, uiop->uio_loffset, n, 1, in dc_read()
308 dc_getattr(struct vnode *vp, struct vattr *vap, int flags, in dc_getattr() argument
311 struct dcnode *dp = VTODC(vp); in dc_getattr()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dshare.c60 add_share(struct vnode *vp, struct shrlock *shr) in add_share() argument
86 mutex_enter(&vp->v_lock); in add_share()
87 for (shrl = vp->v_shrlocks; shrl != NULL; shrl = shrl->next) { in add_share()
127 mutex_exit(&vp->v_lock); in add_share()
135 if (isreadonly(vp)) in add_share()
137 mutex_exit(&vp->v_lock); in add_share()
149 mutex_exit(&vp->v_lock); in add_share()
173 mutex_exit(&vp->v_lock); in add_share()
182 isreadonly(vp)) { in add_share()
185 mutex_exit(&vp->v_lock); in add_share()
[all …]

12345678910>>...22