/freebsd/sys/fs/pseudofs/ |
H A D | pseudofs_vnops.c | 155 struct vnode *vn = va->a_vp; in pfs_access() local 156 struct pfs_vdata *pvd = vn->v_data; in pfs_access() 163 error = VOP_GETATTR(vn, &vattr, va->a_cred); in pfs_access() 166 error = vaccess(vn->v_type, vattr.va_mode, vattr.va_uid, vattr.va_gid, in pfs_access() 177 struct vnode *vn = va->a_vp; in pfs_close() local 178 struct pfs_vdata *pvd = vn->v_data; in pfs_close() 190 if (vrefcnt(vn) > 1 || pn->pn_close == NULL) in pfs_close() 213 struct vnode *vn = va->a_vp; in pfs_getattr() local 214 struct pfs_vdata *pvd = vn->v_data; in pfs_getattr() 226 vap->va_type = vn->v_type; in pfs_getattr() [all …]
|
/freebsd/lib/libprocstat/ |
H A D | libprocstat_compat.c | 101 struct filestat *fst, struct freebsd11_vnstat *vn, char *errbuf); 204 struct vnstat vn; in freebsd11_procstat_get_vnode_info() local 207 r = procstat_get_vnode_info(procstat, fst, &vn, errbuf); in freebsd11_procstat_get_vnode_info() 210 vn_compat->vn_fileid = vn.vn_fileid; in freebsd11_procstat_get_vnode_info() 211 vn_compat->vn_size = vn.vn_size; in freebsd11_procstat_get_vnode_info() 212 vn_compat->vn_mntdir = vn.vn_mntdir; 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() [all …]
|
H A D | common_kvm.c | 88 ufs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) in ufs_filestat() argument 106 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() 114 devfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) in devfs_filestat() argument 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() 133 vn->vn_mode = (devfs_dirent.de_mode & ~S_IFMT) | S_IFCHR; in devfs_filestat() 134 vn->vn_size = 0; in devfs_filestat() [all …]
|
H A D | common_kvm.h | 40 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 D | msdosfs.c | 82 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 D | smbfs.c | 53 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 D | cd9660.c | 67 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 D | zfs.c | 56 zfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) in zfs_filestat() argument 105 vn->vn_fsid = mount.mnt_stat.f_fsid.val[0]; in zfs_filestat() 106 vn->vn_fileid = *(uint64_t *)(void *)(dataptr + offsetof_z_id); in zfs_filestat() 107 vn->vn_mode = *(mode_t *)(void *)(dataptr + offsetof_z_mode); in zfs_filestat() 108 vn->vn_size = *(uint64_t *)(void *)(dataptr + offsetof_z_size); in zfs_filestat()
|
H A D | udf.c | 81 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 D | libprocstat.c | 148 struct vnstat *vn, char *errbuf); 150 struct vnstat *vn, char *errbuf); 1241 struct vnstat *vn, char *errbuf) in procstat_get_vnode_info() argument 1244 assert(vn); in procstat_get_vnode_info() 1246 return (procstat_get_vnode_info_kvm(procstat->kd, fst, vn, in procstat_get_vnode_info() 1250 return (procstat_get_vnode_info_sysctl(fst, vn, errbuf)); in procstat_get_vnode_info() 1261 struct vnstat *vn, char *errbuf) in procstat_get_vnode_info_kvm() argument 1268 struct vnstat *vn); in procstat_get_vnode_info_kvm() 1289 assert(vn); in procstat_get_vnode_info_kvm() 1299 bzero(vn, sizeof(*vn)); in procstat_get_vnode_info_kvm() [all …]
|
/freebsd/usr.bin/fstat/ |
H A D | fstat.c | 237 struct vnstat vn; in print_file_info() local 248 error = procstat_get_vnode_info(procstat, fst, &vn, errbuf); in print_file_info() 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 565 error = procstat_get_vnode_info(procstat, fst, &vn, errbuf); in print_vnode_info() 568 else if (vn.vn_type == PS_FST_VTYPE_VBAD) in print_vnode_info() 570 else if (vn.vn_type == PS_FST_VTYPE_VNON) in print_vnode_info() 578 printf(" %#5jx", (uintmax_t)vn.vn_fsid); in print_vnode_info() 579 else if (vn.vn_mntdir != NULL) in print_vnode_info() [all …]
|
H A D | fuser.c | 286 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 D | poly1305-s390x.pl | 324 vn ($H3,$ACC3,$mask26); 325 vn ($H0,$ACC0,$mask26); 331 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); 604 vn ($I0,$I0,$mask26); [all …]
|
/freebsd/tools/diag/dumpvfscache/ |
H A D | dumpvfscache.c | 73 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/sys/cam/ctl/ |
H A D | ctl_backend_block.c | 162 struct vnode *vn; member 620 (void) vn_start_write(be_lun->vn, &mountpoint, V_WAIT); in ctl_be_block_flush_file() 622 vn_lock(be_lun->vn, vn_lktype_write(mountpoint, be_lun->vn) | in ctl_be_block_flush_file() 624 error = VOP_FSYNC(be_lun->vn, beio->io_arg ? MNT_NOWAIT : MNT_WAIT, in ctl_be_block_flush_file() 626 VOP_UNLOCK(be_lun->vn); in ctl_be_block_flush_file() 697 vn_lock(be_lun->vn, LK_SHARED | LK_RETRY); in ctl_be_block_dispatch_file() 719 error = VOP_READ(be_lun->vn, &xuio, flags, file_data->cred); in ctl_be_block_dispatch_file() 721 VOP_UNLOCK(be_lun->vn); in ctl_be_block_dispatch_file() 742 (void)vn_start_write(be_lun->vn, &mountpoint, V_WAIT); in ctl_be_block_dispatch_file() 743 vn_lock(be_lun->vn, vn_lktype_write(mountpoint, in ctl_be_block_dispatch_file() [all …]
|
/freebsd/contrib/one-true-awk/ |
H A D | main.c | 137 char *fn, *vn; in main() local 203 vn = getarg(&argc, &argv, "no variable name"); in main() 204 if (isclvar(vn)) in main() 205 setclvar(vn); in main() 207 FATAL("invalid -v option argument: %s", vn); in main()
|
/freebsd/contrib/tcpdump/ |
H A D | print-nsh.c | 216 u_int vn; in nsh_print() local 219 for (vn = 0; vn < tlv_len; vn++) { in nsh_print()
|
/freebsd/sys/contrib/dev/iwlwifi/ |
H A D | zzz_fw_ports_fwget.sh | 155 vn=$(echo ${fx} | awk '{ gsub(".ucode$", ""); gsub("^.*-", ""); print; }') 158 for i in `jot ${vn} ${vn} 1`; do
|
/freebsd/sys/dev/xen/blkback/ |
H A D | blkback.c | 652 struct vnode *vn; member 2164 (void) vn_start_write(xbb->vn, &mountpoint, V_WAIT); in xbb_dispatch_file() 2166 vn_lock(xbb->vn, LK_EXCLUSIVE | LK_RETRY); in xbb_dispatch_file() 2167 error = VOP_FSYNC(xbb->vn, MNT_WAIT, curthread); in xbb_dispatch_file() 2168 VOP_UNLOCK(xbb->vn); in xbb_dispatch_file() 2226 vn_lock(xbb->vn, LK_EXCLUSIVE | LK_RETRY); in xbb_dispatch_file() 2248 error = VOP_READ(xbb->vn, &xuio, (flags & BIO_ORDERED) ? in xbb_dispatch_file() 2251 VOP_UNLOCK(xbb->vn); in xbb_dispatch_file() 2260 (void)vn_start_write(xbb->vn, &mountpoint, V_WAIT); in xbb_dispatch_file() 2262 vn_lock(xbb->vn, LK_EXCLUSIVE | LK_RETRY); in xbb_dispatch_file() [all …]
|
/freebsd/sys/fs/fdescfs/ |
H A D | fdesc_vnops.c | 624 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/nvi/regex/ |
H A D | regexec.c | 116 #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/contrib/llvm-project/llvm/lib/Support/ |
H A D | regexec.c | 113 #define STATEVARS long vn; char *space 116 (m)->vn = 0; } 118 #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates])
|
/freebsd/contrib/mandoc/ |
H A D | term.c | 257 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 D | regexec.c | 152 #define STATEVARS long vn; char *space 155 (m)->vn = 0; } 157 #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates])
|
/freebsd/sys/compat/lindebugfs/ |
H A D | lindebugfs.c | 119 struct vnode vn; in debugfs_fill() local 128 vn.v_data = d->dm_data; in debugfs_fill() 130 rc = d->dm_fops->open(&vn, &lf); in debugfs_fill() 164 d->dm_fops->release(&vn, &lf); in debugfs_fill()
|