Home
last modified time | relevance | path

Searched refs:vn (Results 1 – 25 of 63) sorted by relevance

123

/freebsd/sys/fs/pseudofs/
H A Dpseudofs_vnops.c287 vn = va->a_vp; in pfs_ioctl()
290 VOP_UNLOCK(vn); in pfs_ioctl()
300 VOP_UNLOCK(vn); in pfs_ioctl()
306 VOP_UNLOCK(vn); in pfs_ioctl()
324 VOP_UNLOCK(vn); in pfs_ioctl()
487 *vpp = vn; in pfs_lookup()
488 VREF(vn); in pfs_lookup()
704 vhold(vn); in pfs_read()
776 vdrop(vn); in pfs_read()
1010 vhold(vn); in pfs_readlink()
[all …]
/freebsd/lib/libprocstat/
H A Dlibprocstat_compat.c204 struct vnstat vn; in freebsd11_procstat_get_vnode_info() local
211 vn_compat->vn_size = vn.vn_size; in freebsd11_procstat_get_vnode_info()
213 vn_compat->vn_dev = vn.vn_dev; in freebsd11_procstat_get_vnode_info()
214 vn_compat->vn_fsid = vn.vn_fsid; in freebsd11_procstat_get_vnode_info()
215 vn_compat->vn_type = vn.vn_type; in freebsd11_procstat_get_vnode_info()
216 vn_compat->vn_mode = vn.vn_mode; in freebsd11_procstat_get_vnode_info()
229 struct vnstat vn; in freebsd12_procstat_get_vnode_info() local
236 vn_compat->vn_size = vn.vn_size; in freebsd12_procstat_get_vnode_info()
238 vn_compat->vn_dev = vn.vn_dev; in freebsd12_procstat_get_vnode_info()
239 vn_compat->vn_fsid = vn.vn_fsid; in freebsd12_procstat_get_vnode_info()
[all …]
H A Dcommon_kvm.c106 vn->vn_fsid = dev2udev(kd, um.um_dev); in ufs_filestat()
107 vn->vn_fileid = inode.i_number; in ufs_filestat()
108 vn->vn_mode = (mode_t)inode.i_mode; in ufs_filestat()
109 vn->vn_size = inode.i_size; in ufs_filestat()
131 vn->vn_fsid = mount.mnt_stat.f_fsid.val[0]; in devfs_filestat()
132 vn->vn_fileid = devfs_dirent.de_inode; in devfs_filestat()
134 vn->vn_size = 0; in devfs_filestat()
150 vn->vn_fsid = nfsnode.n_vattr.va_fsid; in nfs_filestat()
151 vn->vn_fileid = nfsnode.n_vattr.va_fileid; in nfs_filestat()
152 vn->vn_size = nfsnode.n_size; in nfs_filestat()
[all …]
H A Dcommon_kvm.h40 int devfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
41 int isofs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
42 int msdosfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
43 int nfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
44 int smbfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
45 int udf_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
46 int ufs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
47 int zfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
H A Dmsdosfs.c82 msdosfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) in msdosfs_filestat() argument
121 vn->vn_fsid = dev2udev(kd, mnt->data.pm_dev); in msdosfs_filestat()
122 vn->vn_mode = 0555; in msdosfs_filestat()
123 vn->vn_mode |= denode.de_Attributes & ATTR_READONLY ? 0 : 0222; in msdosfs_filestat()
124 vn->vn_mode &= mnt->data.pm_mask; in msdosfs_filestat()
127 vn->vn_mode |= denode.de_Attributes & ATTR_DIRECTORY ? S_IFDIR : S_IFREG; in msdosfs_filestat()
128 vn->vn_size = denode.de_FileSize; in msdosfs_filestat()
154 vn->vn_fileid = fileid; in msdosfs_filestat()
H A Dsmbfs.c53 smbfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) in smbfs_filestat() argument
60 assert(vn); in smbfs_filestat()
74 vn->vn_fileid = node.n_ino; in smbfs_filestat()
75 if (vn->vn_fileid == 0) in smbfs_filestat()
76 vn->vn_fileid = 2; in smbfs_filestat()
77 vn->vn_fsid = mnt.mnt_stat.f_fsid.val[0]; in smbfs_filestat()
H A Dcd9660.c67 isofs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) in isofs_filestat() argument
84 vn->vn_fsid = dev2udev(kd, mnt.im_dev); in isofs_filestat()
85 vn->vn_mode = (mode_t)isonode.inode.iso_mode; in isofs_filestat()
86 vn->vn_fileid = isonode.i_number; in isofs_filestat()
87 vn->vn_size = isonode.i_size; in isofs_filestat()
H A Dzfs.c54 zfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) in zfs_filestat() argument
103 vn->vn_fsid = mount.mnt_stat.f_fsid.val[0]; in zfs_filestat()
104 vn->vn_fileid = *(uint64_t *)(void *)(dataptr + offsetof_z_id); in zfs_filestat()
105 vn->vn_mode = *(mode_t *)(void *)(dataptr + offsetof_z_mode); in zfs_filestat()
106 vn->vn_size = *(uint64_t *)(void *)(dataptr + offsetof_z_size); in zfs_filestat()
H A Dudf.c81 udf_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) in udf_filestat() argument
88 assert(vn); in udf_filestat()
100 vn->vn_fileid = node.hash_id; in udf_filestat()
101 vn->vn_fsid = dev2udev(kd, mnt.im_dev); in udf_filestat()
H A Dlibprocstat.c1244 assert(vn); in procstat_get_vnode_info()
1289 assert(vn); in procstat_get_vnode_info_kvm()
1299 bzero(vn, sizeof(*vn)); in procstat_get_vnode_info_kvm()
1332 vn->vn_dev = -1; in procstat_get_vnode_info_kvm()
1390 assert(vn); in procstat_get_vnode_info_sysctl()
1391 bzero(vn, sizeof(*vn)); in procstat_get_vnode_info_sysctl()
1415 vn->vn_type = vntype; in procstat_get_vnode_info_sysctl()
1430 vn->vn_dev = rdev; in procstat_get_vnode_info_sysctl()
1442 vn->vn_fsid = fsid; in procstat_get_vnode_info_sysctl()
1444 vn->vn_size = size; in procstat_get_vnode_info_sysctl()
[all …]
/freebsd/usr.bin/fstat/
H A Dfstat.c237 struct vnstat vn; in print_file_info() local
253 if (d->fsid == vn.vn_fsid) { in print_file_info()
255 if (d->ino == vn.vn_fileid) { in print_file_info()
558 struct vnstat vn; in print_vnode_info() local
579 else if (vn.vn_mntdir != NULL) in print_vnode_info()
580 (void)printf(" %-8s", vn.vn_mntdir); in print_vnode_info()
588 strmode(vn.vn_mode, mode); in print_vnode_info()
592 if (vn.vn_type == PS_FST_VTYPE_VBLK || vn.vn_type == PS_FST_VTYPE_VCHR) { in print_vnode_info()
593 if (nflg || !*vn.vn_devname) in print_vnode_info()
596 printf(" %6s", vn.vn_devname); in print_vnode_info()
[all …]
H A Dfuser.c286 struct vnstat vn; in dofiles() local
300 error = procstat_get_vnode_info(procstat, fst, &vn, errbuf); in dofiles()
304 if (flags & CFLAG && reqfiles[i].fsid == vn.vn_fsid) { in dofiles()
307 else if (reqfiles[i].fsid == vn.vn_fsid && in dofiles()
308 reqfiles[i].fileid == vn.vn_fileid) { in dofiles()
312 (vn.vn_type == PS_FST_VTYPE_VCHR || in dofiles()
313 vn.vn_type == PS_FST_VTYPE_VBLK) && in dofiles()
314 vn.vn_fsid == reqfiles[i].fileid) { in dofiles()
/freebsd/crypto/openssl/crypto/poly1305/asm/
H A Dpoly1305-s390x.pl331 vn ($H4,$H4,$mask26);
332 vn ($H1,$H1,$mask26);
338 vn ($H2,$H2,$mask26);
344 vn ($H0,$H0,$mask26);
345 vn ($H3,$H3,$mask26);
526 vn ($I0,$I0,$mask26);
527 vn ($I2,$I2,$mask26);
830 vn ($I1,$I1,$ACC1);
832 vn ($I2,$I2,$ACC1);
834 vn ($I3,$I3,$ACC1);
[all …]
/freebsd/tools/diag/dumpvfscache/
H A Ddumpvfscache.c73 struct vnode vn; in main() local
98 kvm_read(kvm, (u_long)nc->nc_dvp, &vn, sizeof vn); in main()
112 kn += vn.v_id; in main()
117 i,nc->nc_dvp, k, nc->nc_vp, vn.v_id, nc->nc_name); in main()
/freebsd/contrib/one-true-awk/
H A Dmain.c117 char *fn, *vn; in main() local
183 vn = getarg(&argc, &argv, "no variable name"); in main()
184 if (isclvar(vn)) in main()
185 setclvar(vn); in main()
187 FATAL("invalid -v option argument: %s", vn); in main()
/freebsd/sys/cam/ctl/
H A Dctl_backend_block.c162 struct vnode *vn; member
624 vn_lock(be_lun->vn, vn_lktype_write(mountpoint, be_lun->vn) | in ctl_be_block_flush_file()
628 VOP_UNLOCK(be_lun->vn); in ctl_be_block_flush_file()
841 VOP_UNLOCK(be_lun->vn); in ctl_be_block_gls_file()
861 if (be_lun->vn == NULL) in ctl_be_block_getattr_file()
876 VOP_UNLOCK(be_lun->vn); in ctl_be_block_getattr_file()
901 vn_lock(be_lun->vn, vn_lktype_write(mp, be_lun->vn) | LK_RETRY); in ctl_be_block_unmap_file()
927 VOP_UNLOCK(be_lun->vn); in ctl_be_block_unmap_file()
2505 if (be_lun->vn) { in ctl_be_block_close()
2510 be_lun->vn = NULL; in ctl_be_block_close()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-nsh.c219 u_int vn; in nsh_print() local
222 for (vn = 0; vn < tlv_len; vn++) { in nsh_print()
/freebsd/sys/dev/xen/blkback/
H A Dblkback.c650 struct vnode *vn; member
2164 VOP_UNLOCK(xbb->vn); in xbb_dispatch_file()
2247 VOP_UNLOCK(xbb->vn); in xbb_dispatch_file()
2280 VOP_UNLOCK(xbb->vn); in xbb_dispatch_file()
2313 if (xbb->vn) { in xbb_close_backend()
2337 xbb->vn = NULL; in xbb_close_backend()
2388 dev = xbb->vn->v_rdev; in xbb_open_dev()
2451 if (VN_IS_DOOMED(xbb->vn)) { in xbb_open_file()
2556 xbb->vn = nd.ni_vp; in xbb_open_backend()
2561 } else if (xbb->vn->v_type == VREG) { in xbb_open_backend()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A Dregexec.c113 #define STATEVARS long vn; char *space
116 (m)->vn = 0; }
118 #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates])
/freebsd/contrib/nvi/regex/
H A Dregexec.c116 #define STATEVARS int vn; char *space
119 (m)->vn = 0; } while (0)
121 #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates])
/freebsd/sys/fs/fdescfs/
H A Dfdesc_vnops.c624 struct vnode *vp, *vn; in fdesc_readlink() local
634 vn = va->a_vp; in fdesc_readlink()
635 if (VTOFDESC(vn)->fd_type != Fdesc) in fdesc_readlink()
637 fd_fd = ((struct fdescnode *)vn->v_data)->fd_fd; in fdesc_readlink()
638 lockflags = VOP_ISLOCKED(vn); in fdesc_readlink()
639 VOP_UNLOCK(vn); in fdesc_readlink()
665 vn_lock(vn, lockflags | LK_RETRY); in fdesc_readlink()
/freebsd/contrib/mandoc/
H A Dterm.c257 size_t vn; /* Visual position of the next character. */ in term_fill() local
275 vn = term_tab_next(vis); in term_fill()
278 vn = vis + (*p->width)(p, ' '); in term_fill()
281 vn = vis; in term_fill()
287 if (breakline || vn > vtarget) in term_fill()
294 vis = vn; in term_fill()
355 size_t vn; /* Visual position of the next character. */ in term_field() local
370 vn = term_tab_next(vis); in term_field()
371 vbl += vn - vis; in term_field()
372 vis = vn; in term_field()
/freebsd/lib/libc/regex/
H A Dregexec.c152 #define STATEVARS long vn; char *space
155 (m)->vn = 0; }
157 #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates])
/freebsd/contrib/libdiff/test/
H A Dtest021.left.txt662 struct vnode *vn;
681 if (bdevvp(dev, &vn)) {
688 vput(vn);
700 vput(vn);
722 key_disk->src_vn = vn;
817 vput(vn);
861 vput(vn);
873 vput(vn);
911 key_disk->src_vn = vn;
947 if (vn && open) {
[all …]
H A Dtest122.left-P.txt639 struct vnode *vn;
658 if (bdevvp(dev, &vn)) {
665 vput(vn);
677 vput(vn);
699 key_disk->src_vn = vn;
794 vput(vn);
838 vput(vn);
850 vput(vn);
888 key_disk->src_vn = vn;
924 if (vn && open) {
[all …]

123