vp                144 usr/server/fs/arfs/arfs_vnops.c arfs_lookup(vnode_t dvp, char *name, vnode_t vp)
vp                160 usr/server/fs/arfs/arfs_vnops.c 	mp = vp->v_mount;
vp                191 usr/server/fs/arfs/arfs_vnops.c 	vp->v_type = VREG;
vp                194 usr/server/fs/arfs/arfs_vnops.c 	vp->v_mode = (mode_t)(S_IRUSR | S_IXUSR);
vp                195 usr/server/fs/arfs/arfs_vnops.c 	vp->v_size = size;
vp                196 usr/server/fs/arfs/arfs_vnops.c 	vp->v_blkno = blkno;
vp                197 usr/server/fs/arfs/arfs_vnops.c 	vp->v_data = (void *)(off + sizeof(struct ar_hdr));
vp                206 usr/server/fs/arfs/arfs_vnops.c arfs_read(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result)
vp                218 usr/server/fs/arfs/arfs_vnops.c 	mp = vp->v_mount;
vp                222 usr/server/fs/arfs/arfs_vnops.c 	if (file_pos >= (off_t)vp->v_size) {
vp                227 usr/server/fs/arfs/arfs_vnops.c 	if (vp->v_size - file_pos < size)
vp                228 usr/server/fs/arfs/arfs_vnops.c 		size = vp->v_size - file_pos;
vp                231 usr/server/fs/arfs/arfs_vnops.c 	off = (off_t)vp->v_data;
vp                274 usr/server/fs/arfs/arfs_vnops.c arfs_seek(vnode_t vp, file_t fp, off_t oldoff, off_t newoff)
vp                277 usr/server/fs/arfs/arfs_vnops.c 	if (newoff > (off_t)vp->v_size)
vp                284 usr/server/fs/arfs/arfs_vnops.c arfs_readdir(vnode_t vp, file_t fp, struct dirent *dir)
vp                297 usr/server/fs/arfs/arfs_vnops.c 	mp = vp->v_mount;
vp                115 usr/server/fs/devfs/devfs_vnops.c devfs_open(vnode_t vp, int flags)
vp                121 usr/server/fs/devfs/devfs_vnops.c 	DPRINTF(("devfs_open: path=%s\n", vp->v_path));
vp                123 usr/server/fs/devfs/devfs_vnops.c 	path = vp->v_path;
vp                127 usr/server/fs/devfs/devfs_vnops.c 	if (vp->v_flags & VPROTDEV) {
vp                139 usr/server/fs/devfs/devfs_vnops.c 	vp->v_data = (void *)dev;	/* Store private data */
vp                144 usr/server/fs/devfs/devfs_vnops.c devfs_close(vnode_t vp, file_t fp)
vp                149 usr/server/fs/devfs/devfs_vnops.c 	if (!strcmp(vp->v_path, "/"))	/* root ? */
vp                152 usr/server/fs/devfs/devfs_vnops.c 	return device_close((device_t)vp->v_data);
vp                156 usr/server/fs/devfs/devfs_vnops.c devfs_read(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result)
vp                162 usr/server/fs/devfs/devfs_vnops.c 	error = device_read((device_t)vp->v_data, buf, &len, fp->f_offset);
vp                169 usr/server/fs/devfs/devfs_vnops.c devfs_write(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result)
vp                175 usr/server/fs/devfs/devfs_vnops.c 	error = device_write((device_t)vp->v_data, buf, &len, fp->f_offset);
vp                183 usr/server/fs/devfs/devfs_vnops.c devfs_ioctl(vnode_t vp, file_t fp, u_long cmd, void *arg)
vp                187 usr/server/fs/devfs/devfs_vnops.c 	error = device_ioctl((device_t)vp->v_data, cmd, arg);
vp                193 usr/server/fs/devfs/devfs_vnops.c devfs_lookup(vnode_t dvp, char *name, vnode_t vp)
vp                214 usr/server/fs/devfs/devfs_vnops.c 	vp->v_type = (info.flags & D_CHR) ? VCHR : VBLK;
vp                216 usr/server/fs/devfs/devfs_vnops.c 		vp->v_flags |= VISTTY;
vp                219 usr/server/fs/devfs/devfs_vnops.c 		vp->v_flags |= VPROTDEV;
vp                221 usr/server/fs/devfs/devfs_vnops.c 		vp->v_mode = (mode_t)(S_IRUSR | S_IWUSR);
vp                229 usr/server/fs/devfs/devfs_vnops.c devfs_readdir(vnode_t vp, file_t fp, struct dirent *dir)
vp                 50 usr/server/fs/fatfs/fatfs_vfsops.c static int fatfs_vget	(mount_t mp, vnode_t vp);
vp                139 usr/server/fs/fatfs/fatfs_vfsops.c 	vnode_t vp;
vp                167 usr/server/fs/fatfs/fatfs_vfsops.c 	vp = mp->m_root;
vp                168 usr/server/fs/fatfs/fatfs_vfsops.c 	vp->v_blkno = CL_ROOT;
vp                200 usr/server/fs/fatfs/fatfs_vfsops.c fatfs_vget(mount_t mp, vnode_t vp)
vp                207 usr/server/fs/fatfs/fatfs_vfsops.c 	vp->v_data = np;
vp                130 usr/server/fs/fatfs/fatfs_vnops.c fatfs_lookup(vnode_t dvp, char *name, vnode_t vp)
vp                140 usr/server/fs/fatfs/fatfs_vnops.c 	fmp = vp->v_mount->m_data;
vp                145 usr/server/fs/fatfs/fatfs_vnops.c 	np = vp->v_data;
vp                153 usr/server/fs/fatfs/fatfs_vnops.c 	vp->v_type = IS_DIR(de) ? VDIR : VREG;
vp                154 usr/server/fs/fatfs/fatfs_vnops.c 	fat_attr_to_mode(de->attr, &vp->v_mode);
vp                155 usr/server/fs/fatfs/fatfs_vnops.c 	vp->v_mode = ALLPERMS;
vp                156 usr/server/fs/fatfs/fatfs_vnops.c 	vp->v_size = de->size;
vp                157 usr/server/fs/fatfs/fatfs_vnops.c 	vp->v_blkno = de->cluster;
vp                165 usr/server/fs/fatfs/fatfs_vnops.c fatfs_read(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result)
vp                171 usr/server/fs/fatfs/fatfs_vnops.c 	DPRINTF(("fatfs_read: vp=%x\n", vp));
vp                174 usr/server/fs/fatfs/fatfs_vnops.c 	fmp = vp->v_mount->m_data;
vp                176 usr/server/fs/fatfs/fatfs_vnops.c 	if (vp->v_type == VDIR)
vp                178 usr/server/fs/fatfs/fatfs_vnops.c 	if (vp->v_type != VREG)
vp                183 usr/server/fs/fatfs/fatfs_vnops.c 	if (file_pos >= vp->v_size)
vp                189 usr/server/fs/fatfs/fatfs_vnops.c 	if (vp->v_size - file_pos < size)
vp                190 usr/server/fs/fatfs/fatfs_vnops.c 		size = vp->v_size - file_pos;
vp                193 usr/server/fs/fatfs/fatfs_vnops.c 	error = fat_seek_cluster(fmp, vp->v_blkno, file_pos, &cl);
vp                236 usr/server/fs/fatfs/fatfs_vnops.c fatfs_write(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result)
vp                245 usr/server/fs/fatfs/fatfs_vnops.c 	DPRINTF(("fatfs_write: vp=%x\n", vp));
vp                248 usr/server/fs/fatfs/fatfs_vnops.c 	fmp = vp->v_mount->m_data;
vp                250 usr/server/fs/fatfs/fatfs_vnops.c 	if (vp->v_type == VDIR)
vp                252 usr/server/fs/fatfs/fatfs_vnops.c 	if (vp->v_type != VREG)
vp                258 usr/server/fs/fatfs/fatfs_vnops.c 	end_pos = vp->v_size;
vp                263 usr/server/fs/fatfs/fatfs_vnops.c 		error = fat_expand_file(fmp, vp->v_blkno, end_pos);
vp                270 usr/server/fs/fatfs/fatfs_vnops.c 		np = vp->v_data;
vp                276 usr/server/fs/fatfs/fatfs_vnops.c 		vp->v_size = end_pos;
vp                280 usr/server/fs/fatfs/fatfs_vnops.c 	error = fat_seek_cluster(fmp, vp->v_blkno, file_pos, &cl);
vp                339 usr/server/fs/fatfs/fatfs_vnops.c fatfs_readdir(vnode_t vp, file_t fp, struct dirent *dir)
vp                346 usr/server/fs/fatfs/fatfs_vnops.c 	fmp = vp->v_mount->m_data;
vp                349 usr/server/fs/fatfs/fatfs_vnops.c 	error = fatfs_get_node(vp, fp->f_offset, &np);
vp                417 usr/server/fs/fatfs/fatfs_vnops.c fatfs_remove(vnode_t dvp, vnode_t vp, char *name)
vp                617 usr/server/fs/fatfs/fatfs_vnops.c fatfs_rmdir(vnode_t dvp, vnode_t vp, char *name)
vp                655 usr/server/fs/fatfs/fatfs_vnops.c fatfs_getattr(vnode_t vp, struct vattr *vap)
vp                662 usr/server/fs/fatfs/fatfs_vnops.c fatfs_setattr(vnode_t vp, struct vattr *vap)
vp                670 usr/server/fs/fatfs/fatfs_vnops.c fatfs_inactive(vnode_t vp)
vp                673 usr/server/fs/fatfs/fatfs_vnops.c 	free(vp->v_data);
vp                678 usr/server/fs/fatfs/fatfs_vnops.c fatfs_truncate(vnode_t vp, off_t length)
vp                685 usr/server/fs/fatfs/fatfs_vnops.c 	fmp = vp->v_mount->m_data;
vp                688 usr/server/fs/fatfs/fatfs_vnops.c 	np = vp->v_data;
vp                696 usr/server/fs/fatfs/fatfs_vnops.c 	} else if (length > vp->v_size) {
vp                697 usr/server/fs/fatfs/fatfs_vnops.c 		error = fat_expand_file(fmp, vp->v_blkno, length);
vp                709 usr/server/fs/fatfs/fatfs_vnops.c 	vp->v_size = length;
vp                142 usr/server/fs/fifofs/fifo_vnops.c fifo_open(vnode_t vp, int flags)
vp                144 usr/server/fs/fifofs/fifo_vnops.c 	struct fifo_node *np = vp->v_data;
vp                146 usr/server/fs/fifofs/fifo_vnops.c 	DPRINTF(("fifo_open: path=%s\n", vp->v_path));
vp                148 usr/server/fs/fifofs/fifo_vnops.c 	if (!strcmp(vp->v_path, "/"))	/* root ? */
vp                156 usr/server/fs/fifofs/fifo_vnops.c 			wakeup_writer(vp);
vp                161 usr/server/fs/fifofs/fifo_vnops.c 			wakeup_reader(vp);
vp                172 usr/server/fs/fifofs/fifo_vnops.c 				wait_writer(vp);
vp                181 usr/server/fs/fifofs/fifo_vnops.c 				wait_reader(vp);
vp                188 usr/server/fs/fifofs/fifo_vnops.c fifo_close(vnode_t vp, file_t fp)
vp                190 usr/server/fs/fifofs/fifo_vnops.c 	struct fifo_node *np = vp->v_data;
vp                200 usr/server/fs/fifofs/fifo_vnops.c 			wakeup_writer(vp);
vp                205 usr/server/fs/fifofs/fifo_vnops.c 			wakeup_reader(vp);
vp                207 usr/server/fs/fifofs/fifo_vnops.c 	if (vp->v_refcnt > 1)
vp                213 usr/server/fs/fifofs/fifo_vnops.c 		cleanup_fifo(vp);
vp                219 usr/server/fs/fifofs/fifo_vnops.c fifo_read(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result)
vp                221 usr/server/fs/fifofs/fifo_vnops.c 	struct fifo_node *np = vp->v_data;
vp                241 usr/server/fs/fifofs/fifo_vnops.c 		wait_writer(vp);
vp                259 usr/server/fs/fifofs/fifo_vnops.c 	wakeup_writer(vp);
vp                264 usr/server/fs/fifofs/fifo_vnops.c fifo_write(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result)
vp                266 usr/server/fs/fifofs/fifo_vnops.c 	struct fifo_node *np = vp->v_data;
vp                279 usr/server/fs/fifofs/fifo_vnops.c 		wait_reader(vp);
vp                300 usr/server/fs/fifofs/fifo_vnops.c 	wakeup_reader(vp);
vp                310 usr/server/fs/fifofs/fifo_vnops.c fifo_ioctl(vnode_t vp, file_t fp, u_long cmd, void *arg)
vp                317 usr/server/fs/fifofs/fifo_vnops.c fifo_lookup(vnode_t dvp, char *name, vnode_t vp)
vp                343 usr/server/fs/fifofs/fifo_vnops.c 	vp->v_data = np;
vp                344 usr/server/fs/fifofs/fifo_vnops.c 	vp->v_mode = ALLPERMS;
vp                345 usr/server/fs/fifofs/fifo_vnops.c 	vp->v_size = 0;
vp                346 usr/server/fs/fifofs/fifo_vnops.c 	vp->v_type = VFIFO;
vp                396 usr/server/fs/fifofs/fifo_vnops.c cleanup_fifo(vnode_t vp)
vp                398 usr/server/fs/fifofs/fifo_vnops.c 	struct fifo_node *np = vp->v_data;
vp                408 usr/server/fs/fifofs/fifo_vnops.c 	vp->v_data = NULL;
vp                412 usr/server/fs/fifofs/fifo_vnops.c fifo_remove(vnode_t dvp, vnode_t vp, char *name)
vp                416 usr/server/fs/fifofs/fifo_vnops.c 	cleanup_fifo(vp);
vp                424 usr/server/fs/fifofs/fifo_vnops.c fifo_readdir(vnode_t vp, file_t fp, struct dirent *dir)
vp                474 usr/server/fs/fifofs/fifo_vnops.c wait_reader(vnode_t vp)
vp                476 usr/server/fs/fifofs/fifo_vnops.c 	struct fifo_node *np = vp->v_data;
vp                479 usr/server/fs/fifofs/fifo_vnops.c 	vn_unlock(vp);
vp                483 usr/server/fs/fifofs/fifo_vnops.c 	vn_lock(vp);
vp                487 usr/server/fs/fifofs/fifo_vnops.c wakeup_writer(vnode_t vp)
vp                489 usr/server/fs/fifofs/fifo_vnops.c 	struct fifo_node *np = vp->v_data;
vp                496 usr/server/fs/fifofs/fifo_vnops.c wait_writer(vnode_t vp)
vp                498 usr/server/fs/fifofs/fifo_vnops.c 	struct fifo_node *np = vp->v_data;
vp                501 usr/server/fs/fifofs/fifo_vnops.c 	vn_unlock(vp);
vp                505 usr/server/fs/fifofs/fifo_vnops.c 	vn_lock(vp);
vp                509 usr/server/fs/fifofs/fifo_vnops.c wakeup_reader(vnode_t vp)
vp                511 usr/server/fs/fifofs/fifo_vnops.c 	struct fifo_node *np = vp->v_data;
vp                204 usr/server/fs/ramfs/ramfs_vnops.c ramfs_lookup(vnode_t dvp, char *name, vnode_t vp)
vp                229 usr/server/fs/ramfs/ramfs_vnops.c 	vp->v_data = np;
vp                230 usr/server/fs/ramfs/ramfs_vnops.c 	vp->v_mode = ALLPERMS;
vp                231 usr/server/fs/ramfs/ramfs_vnops.c 	vp->v_type = np->rn_type;
vp                232 usr/server/fs/ramfs/ramfs_vnops.c 	vp->v_size = np->rn_size;
vp                256 usr/server/fs/ramfs/ramfs_vnops.c ramfs_rmdir(vnode_t dvp, vnode_t vp, char *name)
vp                259 usr/server/fs/ramfs/ramfs_vnops.c 	return ramfs_remove_node(dvp->v_data, vp->v_data);
vp                264 usr/server/fs/ramfs/ramfs_vnops.c ramfs_remove(vnode_t dvp, vnode_t vp, char *name)
vp                270 usr/server/fs/ramfs/ramfs_vnops.c 	error = ramfs_remove_node(dvp->v_data, vp->v_data);
vp                274 usr/server/fs/ramfs/ramfs_vnops.c 	np = vp->v_data;
vp                282 usr/server/fs/ramfs/ramfs_vnops.c ramfs_truncate(vnode_t vp, off_t length)
vp                289 usr/server/fs/ramfs/ramfs_vnops.c 	DPRINTF(("truncate %s length=%d\n", vp->v_path, length));
vp                290 usr/server/fs/ramfs/ramfs_vnops.c 	np = vp->v_data;
vp                304 usr/server/fs/ramfs/ramfs_vnops.c 			memcpy(new_buf, np->rn_buf, vp->v_size);
vp                311 usr/server/fs/ramfs/ramfs_vnops.c 	vp->v_size = length;
vp                334 usr/server/fs/ramfs/ramfs_vnops.c ramfs_read(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result)
vp                340 usr/server/fs/ramfs/ramfs_vnops.c 	if (vp->v_type == VDIR)
vp                342 usr/server/fs/ramfs/ramfs_vnops.c 	if (vp->v_type != VREG)
vp                346 usr/server/fs/ramfs/ramfs_vnops.c 	if (off >= (off_t)vp->v_size)
vp                349 usr/server/fs/ramfs/ramfs_vnops.c 	if (vp->v_size - off < size)
vp                350 usr/server/fs/ramfs/ramfs_vnops.c 		size = vp->v_size - off;
vp                352 usr/server/fs/ramfs/ramfs_vnops.c 	np = vp->v_data;
vp                361 usr/server/fs/ramfs/ramfs_vnops.c ramfs_write(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result)
vp                370 usr/server/fs/ramfs/ramfs_vnops.c 	if (vp->v_type == VDIR)
vp                372 usr/server/fs/ramfs/ramfs_vnops.c 	if (vp->v_type != VREG)
vp                375 usr/server/fs/ramfs/ramfs_vnops.c 	np = vp->v_data;
vp                377 usr/server/fs/ramfs/ramfs_vnops.c 	end_pos = vp->v_size;
vp                395 usr/server/fs/ramfs/ramfs_vnops.c 				memcpy(new_buf, np->rn_buf, vp->v_size);
vp                402 usr/server/fs/ramfs/ramfs_vnops.c 		vp->v_size = end_pos;
vp                452 usr/server/fs/ramfs/ramfs_vnops.c ramfs_readdir(vnode_t vp, file_t fp, struct dirent *dir)
vp                466 usr/server/fs/ramfs/ramfs_vnops.c 		dnp = vp->v_data;
vp                 57 usr/server/fs/vfs/vfs_lookup.c 	vnode_t dvp, vp;
vp                 70 usr/server/fs/vfs/vfs_lookup.c 	vp = vn_lookup(mp, node);
vp                 71 usr/server/fs/vfs/vfs_lookup.c 	if (vp) {
vp                 73 usr/server/fs/vfs/vfs_lookup.c 		*vpp = vp;
vp                106 usr/server/fs/vfs/vfs_lookup.c 		vp = vn_lookup(mp, node);
vp                107 usr/server/fs/vfs/vfs_lookup.c 		if (vp == NULL) {
vp                108 usr/server/fs/vfs/vfs_lookup.c 			vp = vget(mp, node);
vp                109 usr/server/fs/vfs/vfs_lookup.c 			if (vp == NULL) {
vp                114 usr/server/fs/vfs/vfs_lookup.c 			error = VOP_LOOKUP(dvp, name, vp);
vp                115 usr/server/fs/vfs/vfs_lookup.c 			if (error || (*p == '/' && vp->v_type != VDIR)) {
vp                117 usr/server/fs/vfs/vfs_lookup.c 				vput(vp);
vp                123 usr/server/fs/vfs/vfs_lookup.c 		dvp = vp;
vp                131 usr/server/fs/vfs/vfs_lookup.c 	if (vp->v_type != VDIR && sec_vnode_permission(path) != 0) {
vp                132 usr/server/fs/vfs/vfs_lookup.c 		vp->v_mode &= ~(0111);
vp                135 usr/server/fs/vfs/vfs_lookup.c 	*vpp = vp;
vp                155 usr/server/fs/vfs/vfs_lookup.c 	vnode_t vp;
vp                176 usr/server/fs/vfs/vfs_lookup.c 	if ((error = namei(dir, &vp)) != 0)
vp                178 usr/server/fs/vfs/vfs_lookup.c 	if (vp->v_type != VDIR) {
vp                179 usr/server/fs/vfs/vfs_lookup.c 		vput(vp);
vp                182 usr/server/fs/vfs/vfs_lookup.c 	*vpp = vp;
vp                 95 usr/server/fs/vfs/vfs_mount.c 	vnode_t vp, vp_covered;
vp                165 usr/server/fs/vfs/vfs_mount.c 	if ((vp = vget(mp, "/")) == NULL) {
vp                169 usr/server/fs/vfs/vfs_mount.c 	vp->v_type = VDIR;
vp                170 usr/server/fs/vfs/vfs_mount.c 	vp->v_flags = VROOT;
vp                171 usr/server/fs/vfs/vfs_mount.c 	vp->v_mode = S_IFDIR | S_IRUSR | S_IWUSR | S_IXUSR;
vp                172 usr/server/fs/vfs/vfs_mount.c 	mp->m_root = vp;
vp                181 usr/server/fs/vfs/vfs_mount.c 		vp->v_mode &=~S_IWUSR;
vp                186 usr/server/fs/vfs/vfs_mount.c 	vn_unlock(vp);
vp                198 usr/server/fs/vfs/vfs_mount.c 	vput(vp);
vp                 57 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp, dvp;
vp                 69 usr/server/fs/vfs/vfs_syscalls.c 		error = namei(path, &vp);
vp                 84 usr/server/fs/vfs/vfs_syscalls.c 			if ((error = namei(path, &vp)) != 0)
vp                 92 usr/server/fs/vfs/vfs_syscalls.c 				vput(vp);
vp                 99 usr/server/fs/vfs/vfs_syscalls.c 		if ((error = namei(path, &vp)) != 0)
vp                104 usr/server/fs/vfs/vfs_syscalls.c 			if ((error = vn_access(vp, VWRITE)) != 0) {
vp                105 usr/server/fs/vfs/vfs_syscalls.c 				vput(vp);
vp                108 usr/server/fs/vfs/vfs_syscalls.c 			if (vp->v_type == VDIR) {
vp                110 usr/server/fs/vfs/vfs_syscalls.c 				vput(vp);
vp                117 usr/server/fs/vfs/vfs_syscalls.c 		if (!(flags & FWRITE) || (vp->v_type == VDIR)) {
vp                118 usr/server/fs/vfs/vfs_syscalls.c 			vput(vp);
vp                121 usr/server/fs/vfs/vfs_syscalls.c 		if ((error = VOP_TRUNCATE(vp, 0)) != 0) {
vp                122 usr/server/fs/vfs/vfs_syscalls.c 			vput(vp);
vp                128 usr/server/fs/vfs/vfs_syscalls.c 		vput(vp);
vp                132 usr/server/fs/vfs/vfs_syscalls.c 	if ((error = VOP_OPEN(vp, flags)) != 0) {
vp                134 usr/server/fs/vfs/vfs_syscalls.c 		vput(vp);
vp                138 usr/server/fs/vfs/vfs_syscalls.c 	fp->f_vnode = vp;
vp                143 usr/server/fs/vfs/vfs_syscalls.c 	vn_unlock(vp);
vp                150 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp;
vp                159 usr/server/fs/vfs/vfs_syscalls.c 	vp = fp->f_vnode;
vp                161 usr/server/fs/vfs/vfs_syscalls.c 		vrele(vp);
vp                164 usr/server/fs/vfs/vfs_syscalls.c 	vn_lock(vp);
vp                165 usr/server/fs/vfs/vfs_syscalls.c 	if ((error = VOP_CLOSE(vp, fp)) != 0) {
vp                166 usr/server/fs/vfs/vfs_syscalls.c 		vn_unlock(vp);
vp                169 usr/server/fs/vfs/vfs_syscalls.c 	vput(vp);
vp                177 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp;
vp                189 usr/server/fs/vfs/vfs_syscalls.c 	vp = fp->f_vnode;
vp                190 usr/server/fs/vfs/vfs_syscalls.c 	vn_lock(vp);
vp                191 usr/server/fs/vfs/vfs_syscalls.c 	error = VOP_READ(vp, fp, buf, size, count);
vp                192 usr/server/fs/vfs/vfs_syscalls.c 	vn_unlock(vp);
vp                199 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp;
vp                211 usr/server/fs/vfs/vfs_syscalls.c 	vp = fp->f_vnode;
vp                212 usr/server/fs/vfs/vfs_syscalls.c 	vn_lock(vp);
vp                213 usr/server/fs/vfs/vfs_syscalls.c 	error = VOP_WRITE(vp, fp, buf, size, count);
vp                214 usr/server/fs/vfs/vfs_syscalls.c 	vn_unlock(vp);
vp                221 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp;
vp                226 usr/server/fs/vfs/vfs_syscalls.c 	vp = fp->f_vnode;
vp                227 usr/server/fs/vfs/vfs_syscalls.c 	vn_lock(vp);
vp                232 usr/server/fs/vfs/vfs_syscalls.c 		if (off > (off_t)vp->v_size)
vp                233 usr/server/fs/vfs/vfs_syscalls.c 			off = vp->v_size;
vp                236 usr/server/fs/vfs/vfs_syscalls.c 		if (fp->f_offset + off > (off_t)vp->v_size)
vp                237 usr/server/fs/vfs/vfs_syscalls.c 			off = vp->v_size;
vp                245 usr/server/fs/vfs/vfs_syscalls.c 			off = vp->v_size;
vp                246 usr/server/fs/vfs/vfs_syscalls.c 		else if ((int)vp->v_size + off < 0)
vp                249 usr/server/fs/vfs/vfs_syscalls.c 			off = vp->v_size + off;
vp                252 usr/server/fs/vfs/vfs_syscalls.c 		vn_unlock(vp);
vp                256 usr/server/fs/vfs/vfs_syscalls.c 	if (VOP_SEEK(vp, fp, fp->f_offset, off) != 0) {
vp                257 usr/server/fs/vfs/vfs_syscalls.c 		vn_unlock(vp);
vp                262 usr/server/fs/vfs/vfs_syscalls.c 	vn_unlock(vp);
vp                269 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp;
vp                277 usr/server/fs/vfs/vfs_syscalls.c 	vp = fp->f_vnode;
vp                278 usr/server/fs/vfs/vfs_syscalls.c 	vn_lock(vp);
vp                279 usr/server/fs/vfs/vfs_syscalls.c 	error = VOP_IOCTL(vp, fp, request, buf);
vp                280 usr/server/fs/vfs/vfs_syscalls.c 	vn_unlock(vp);
vp                288 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp;
vp                296 usr/server/fs/vfs/vfs_syscalls.c 	vp = fp->f_vnode;
vp                297 usr/server/fs/vfs/vfs_syscalls.c 	vn_lock(vp);
vp                298 usr/server/fs/vfs/vfs_syscalls.c 	error = VOP_FSYNC(vp, fp);
vp                299 usr/server/fs/vfs/vfs_syscalls.c 	vn_unlock(vp);
vp                306 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp;
vp                311 usr/server/fs/vfs/vfs_syscalls.c 	vp = fp->f_vnode;
vp                312 usr/server/fs/vfs/vfs_syscalls.c 	vn_lock(vp);
vp                313 usr/server/fs/vfs/vfs_syscalls.c 	error = vn_stat(vp, st);
vp                314 usr/server/fs/vfs/vfs_syscalls.c 	vn_unlock(vp);
vp                464 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp, dvp;
vp                469 usr/server/fs/vfs/vfs_syscalls.c 	if ((error = namei(path, &vp)) == 0) {
vp                471 usr/server/fs/vfs/vfs_syscalls.c 		vput(vp);
vp                494 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp, dvp;
vp                502 usr/server/fs/vfs/vfs_syscalls.c 	if ((error = namei(path, &vp)) != 0)
vp                504 usr/server/fs/vfs/vfs_syscalls.c 	if ((error = vn_access(vp, VWRITE)) != 0)
vp                506 usr/server/fs/vfs/vfs_syscalls.c 	if (vp->v_type != VDIR) {
vp                510 usr/server/fs/vfs/vfs_syscalls.c 	if (vp->v_flags & VROOT || vcount(vp) >= 2) {
vp                517 usr/server/fs/vfs/vfs_syscalls.c 	error = VOP_RMDIR(dvp, vp, name);
vp                518 usr/server/fs/vfs/vfs_syscalls.c 	vn_unlock(vp);
vp                519 usr/server/fs/vfs/vfs_syscalls.c 	vgone(vp);
vp                524 usr/server/fs/vfs/vfs_syscalls.c 	vput(vp);
vp                532 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp, dvp;
vp                548 usr/server/fs/vfs/vfs_syscalls.c 	if ((error = namei(path, &vp)) == 0) {
vp                549 usr/server/fs/vfs/vfs_syscalls.c 		vput(vp);
vp                658 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp, dvp;
vp                663 usr/server/fs/vfs/vfs_syscalls.c 	if ((error = namei(path, &vp)) != 0)
vp                665 usr/server/fs/vfs/vfs_syscalls.c 	if ((error = vn_access(vp, VWRITE)) != 0)
vp                667 usr/server/fs/vfs/vfs_syscalls.c 	if (vp->v_type == VDIR) {
vp                672 usr/server/fs/vfs/vfs_syscalls.c 	if (vp->v_flags & VROOT || vcount(vp) >= 2) {
vp                679 usr/server/fs/vfs/vfs_syscalls.c 	error = VOP_REMOVE(dvp, vp, name);
vp                681 usr/server/fs/vfs/vfs_syscalls.c 	vn_unlock(vp);
vp                682 usr/server/fs/vfs/vfs_syscalls.c 	vgone(vp);
vp                686 usr/server/fs/vfs/vfs_syscalls.c 	vput(vp);
vp                693 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp;
vp                699 usr/server/fs/vfs/vfs_syscalls.c 	if ((error = namei(path, &vp)) != 0)
vp                710 usr/server/fs/vfs/vfs_syscalls.c 	error = vn_access(vp, flags);
vp                712 usr/server/fs/vfs/vfs_syscalls.c 	vput(vp);
vp                719 usr/server/fs/vfs/vfs_syscalls.c 	vnode_t vp;
vp                724 usr/server/fs/vfs/vfs_syscalls.c 	if ((error = namei(path, &vp)) != 0)
vp                726 usr/server/fs/vfs/vfs_syscalls.c 	error = vn_stat(vp, st);
vp                727 usr/server/fs/vfs/vfs_syscalls.c 	vput(vp);
vp                108 usr/server/fs/vfs/vfs_vnode.c 	vnode_t vp;
vp                113 usr/server/fs/vfs/vfs_vnode.c 		vp = list_entry(n, struct vnode, v_link);
vp                114 usr/server/fs/vfs/vfs_vnode.c 		if (vp->v_mount == mp &&
vp                115 usr/server/fs/vfs/vfs_vnode.c 		    !strncmp(vp->v_path, path, PATH_MAX)) {
vp                116 usr/server/fs/vfs/vfs_vnode.c 			vp->v_refcnt++;
vp                118 usr/server/fs/vfs/vfs_vnode.c 			mutex_lock(&vp->v_lock);
vp                119 usr/server/fs/vfs/vfs_vnode.c 			vp->v_nrlocks++;
vp                120 usr/server/fs/vfs/vfs_vnode.c 			return vp;
vp                131 usr/server/fs/vfs/vfs_vnode.c vn_lock(vnode_t vp)
vp                133 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp);
vp                134 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp->v_refcnt > 0);
vp                136 usr/server/fs/vfs/vfs_vnode.c 	mutex_lock(&vp->v_lock);
vp                137 usr/server/fs/vfs/vfs_vnode.c 	vp->v_nrlocks++;
vp                138 usr/server/fs/vfs/vfs_vnode.c 	DPRINTF(VFSDB_VNODE, ("vn_lock:   %s\n", vp->v_path));
vp                145 usr/server/fs/vfs/vfs_vnode.c vn_unlock(vnode_t vp)
vp                147 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp);
vp                148 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp->v_refcnt > 0);
vp                149 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp->v_nrlocks > 0);
vp                151 usr/server/fs/vfs/vfs_vnode.c 	DPRINTF(VFSDB_VNODE, ("vn_unlock: %s\n", vp->v_path));
vp                152 usr/server/fs/vfs/vfs_vnode.c 	vp->v_nrlocks--;
vp                153 usr/server/fs/vfs/vfs_vnode.c 	mutex_unlock(&vp->v_lock);
vp                163 usr/server/fs/vfs/vfs_vnode.c 	vnode_t vp;
vp                169 usr/server/fs/vfs/vfs_vnode.c 	if (!(vp = malloc(sizeof(struct vnode))))
vp                171 usr/server/fs/vfs/vfs_vnode.c 	memset(vp, 0, sizeof(struct vnode));
vp                174 usr/server/fs/vfs/vfs_vnode.c 	if (!(vp->v_path = malloc(len))) {
vp                175 usr/server/fs/vfs/vfs_vnode.c 		free(vp);
vp                178 usr/server/fs/vfs/vfs_vnode.c 	vp->v_mount = mp;
vp                179 usr/server/fs/vfs/vfs_vnode.c 	vp->v_refcnt = 1;
vp                180 usr/server/fs/vfs/vfs_vnode.c 	vp->v_op = mp->m_op->vfs_vnops;
vp                181 usr/server/fs/vfs/vfs_vnode.c 	strlcpy(vp->v_path, path, len);
vp                182 usr/server/fs/vfs/vfs_vnode.c 	mutex_init(&vp->v_lock);
vp                183 usr/server/fs/vfs/vfs_vnode.c 	vp->v_nrlocks = 0;
vp                188 usr/server/fs/vfs/vfs_vnode.c 	if ((error = VFS_VGET(mp, vp)) != 0) {
vp                189 usr/server/fs/vfs/vfs_vnode.c 		mutex_destroy(&vp->v_lock);
vp                190 usr/server/fs/vfs/vfs_vnode.c 		free(vp->v_path);
vp                191 usr/server/fs/vfs/vfs_vnode.c 		free(vp);
vp                194 usr/server/fs/vfs/vfs_vnode.c 	vfs_busy(vp->v_mount);
vp                195 usr/server/fs/vfs/vfs_vnode.c 	mutex_lock(&vp->v_lock);
vp                196 usr/server/fs/vfs/vfs_vnode.c 	vp->v_nrlocks++;
vp                199 usr/server/fs/vfs/vfs_vnode.c 	list_insert(&vnode_table[vn_hash(mp, path)], &vp->v_link);
vp                201 usr/server/fs/vfs/vfs_vnode.c 	return vp;
vp                208 usr/server/fs/vfs/vfs_vnode.c vput(vnode_t vp)
vp                210 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp);
vp                211 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp->v_nrlocks > 0);
vp                212 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp->v_refcnt > 0);
vp                213 usr/server/fs/vfs/vfs_vnode.c 	DPRINTF(VFSDB_VNODE, ("vput: ref=%d %s\n", vp->v_refcnt,
vp                214 usr/server/fs/vfs/vfs_vnode.c 			      vp->v_path));
vp                216 usr/server/fs/vfs/vfs_vnode.c 	vp->v_refcnt--;
vp                217 usr/server/fs/vfs/vfs_vnode.c 	if (vp->v_refcnt > 0) {
vp                218 usr/server/fs/vfs/vfs_vnode.c 		vn_unlock(vp);
vp                222 usr/server/fs/vfs/vfs_vnode.c 	list_remove(&vp->v_link);
vp                228 usr/server/fs/vfs/vfs_vnode.c 	VOP_INACTIVE(vp);
vp                229 usr/server/fs/vfs/vfs_vnode.c 	vfs_unbusy(vp->v_mount);
vp                230 usr/server/fs/vfs/vfs_vnode.c 	vp->v_nrlocks--;
vp                231 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp->v_nrlocks == 0);
vp                232 usr/server/fs/vfs/vfs_vnode.c 	mutex_unlock(&vp->v_lock);
vp                233 usr/server/fs/vfs/vfs_vnode.c 	mutex_destroy(&vp->v_lock);
vp                234 usr/server/fs/vfs/vfs_vnode.c 	free(vp->v_path);
vp                235 usr/server/fs/vfs/vfs_vnode.c 	free(vp);
vp                242 usr/server/fs/vfs/vfs_vnode.c vref(vnode_t vp)
vp                244 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp);
vp                245 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp->v_refcnt > 0);	/* Need vget */
vp                248 usr/server/fs/vfs/vfs_vnode.c 	DPRINTF(VFSDB_VNODE, ("vref: ref=%d %s\n", vp->v_refcnt,
vp                249 usr/server/fs/vfs/vfs_vnode.c 			      vp->v_path));
vp                250 usr/server/fs/vfs/vfs_vnode.c 	vp->v_refcnt++;
vp                261 usr/server/fs/vfs/vfs_vnode.c vrele(vnode_t vp)
vp                263 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp);
vp                264 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp->v_refcnt > 0);
vp                267 usr/server/fs/vfs/vfs_vnode.c 	DPRINTF(VFSDB_VNODE, ("vrele: ref=%d %s\n", vp->v_refcnt,
vp                268 usr/server/fs/vfs/vfs_vnode.c 			      vp->v_path));
vp                269 usr/server/fs/vfs/vfs_vnode.c 	vp->v_refcnt--;
vp                270 usr/server/fs/vfs/vfs_vnode.c 	if (vp->v_refcnt > 0) {
vp                274 usr/server/fs/vfs/vfs_vnode.c 	list_remove(&vp->v_link);
vp                280 usr/server/fs/vfs/vfs_vnode.c 	VOP_INACTIVE(vp);
vp                281 usr/server/fs/vfs/vfs_vnode.c 	vfs_unbusy(vp->v_mount);
vp                282 usr/server/fs/vfs/vfs_vnode.c 	mutex_destroy(&vp->v_lock);
vp                283 usr/server/fs/vfs/vfs_vnode.c 	free(vp->v_path);
vp                284 usr/server/fs/vfs/vfs_vnode.c 	free(vp);
vp                291 usr/server/fs/vfs/vfs_vnode.c vgone(vnode_t vp)
vp                293 usr/server/fs/vfs/vfs_vnode.c 	ASSERT(vp->v_nrlocks == 0);
vp                296 usr/server/fs/vfs/vfs_vnode.c 	DPRINTF(VFSDB_VNODE, ("vgone: %s\n", vp->v_path));
vp                297 usr/server/fs/vfs/vfs_vnode.c 	list_remove(&vp->v_link);
vp                298 usr/server/fs/vfs/vfs_vnode.c 	vfs_unbusy(vp->v_mount);
vp                299 usr/server/fs/vfs/vfs_vnode.c 	mutex_destroy(&vp->v_lock);
vp                300 usr/server/fs/vfs/vfs_vnode.c 	free(vp->v_path);
vp                301 usr/server/fs/vfs/vfs_vnode.c 	free(vp);
vp                309 usr/server/fs/vfs/vfs_vnode.c vcount(vnode_t vp)
vp                313 usr/server/fs/vfs/vfs_vnode.c 	vn_lock(vp);
vp                314 usr/server/fs/vfs/vfs_vnode.c 	count = vp->v_refcnt;
vp                315 usr/server/fs/vfs/vfs_vnode.c 	vn_unlock(vp);
vp                327 usr/server/fs/vfs/vfs_vnode.c 	vnode_t vp;
vp                333 usr/server/fs/vfs/vfs_vnode.c 			vp = list_entry(n, struct vnode, v_link);
vp                334 usr/server/fs/vfs/vfs_vnode.c 			if (vp->v_mount == mp) {
vp                343 usr/server/fs/vfs/vfs_vnode.c vn_stat(vnode_t vp, struct stat *st)
vp                349 usr/server/fs/vfs/vfs_vnode.c 	st->st_ino = (ino_t)vp;
vp                350 usr/server/fs/vfs/vfs_vnode.c 	st->st_size = vp->v_size;
vp                351 usr/server/fs/vfs/vfs_vnode.c 	mode = vp->v_mode;
vp                352 usr/server/fs/vfs/vfs_vnode.c 	switch (vp->v_type) {
vp                379 usr/server/fs/vfs/vfs_vnode.c 	st->st_blocks = vp->v_size / S_BLKSIZE;
vp                382 usr/server/fs/vfs/vfs_vnode.c 	if (vp->v_type == VCHR || vp->v_type == VBLK)
vp                383 usr/server/fs/vfs/vfs_vnode.c 		st->st_rdev = (dev_t)vp->v_data;
vp                392 usr/server/fs/vfs/vfs_vnode.c vn_access(vnode_t vp, int flags)
vp                396 usr/server/fs/vfs/vfs_vnode.c 	if ((flags & VEXEC) && (vp->v_mode & 0111) == 0) {
vp                400 usr/server/fs/vfs/vfs_vnode.c 	if ((flags & VREAD) && (vp->v_mode & 0444) == 0) {
vp                405 usr/server/fs/vfs/vfs_vnode.c 		if (vp->v_mount->m_flags & MNT_RDONLY) {
vp                409 usr/server/fs/vfs/vfs_vnode.c 		if ((vp->v_mode & 0222) == 0) {
vp                427 usr/server/fs/vfs/vfs_vnode.c 	vnode_t vp;
vp                440 usr/server/fs/vfs/vfs_vnode.c 			vp = list_entry(n, struct vnode, v_link);
vp                441 usr/server/fs/vfs/vfs_vnode.c 			mp = vp->v_mount;
vp                443 usr/server/fs/vfs/vfs_vnode.c 			dprintf(" %08x %08x %s %6d %8d %s%s\n", (u_int)vp,
vp                444 usr/server/fs/vfs/vfs_vnode.c 				(u_int)mp, type[vp->v_type], vp->v_refcnt,
vp                445 usr/server/fs/vfs/vfs_vnode.c 				(u_int)vp->v_blkno,
vp                447 usr/server/fs/vfs/vfs_vnode.c 				vp->v_path);