Searched refs:vn (Results 1 - 25 of 44) sorted by relevance

12

/freebsd-11-stable/lib/libprocstat/
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 Dsmbfs.c51 smbfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) argument
58 assert(vn);
72 vn->vn_fileid = node.n_ino;
73 if (vn->vn_fileid == 0)
74 vn->vn_fileid = 2;
75 vn->vn_fsid = mnt.mnt_stat.f_fsid.val[0];
H A Dcommon_kvm.c90 ufs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) argument
108 vn->vn_fsid = dev2udev(kd, um.um_dev);
109 vn->vn_fileid = inode.i_number;
110 vn->vn_mode = (mode_t)inode.i_mode;
111 vn->vn_size = inode.i_size;
116 devfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) argument
133 vn->vn_fsid = mount.mnt_stat.f_fsid.val[0];
134 vn->vn_fileid = devfs_dirent.de_inode;
135 vn->vn_mode = (devfs_dirent.de_mode & ~S_IFMT) | S_IFCHR;
136 vn
141 nfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) argument
[all...]
H A Dcd9660.c68 isofs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) argument
85 vn->vn_fsid = dev2udev(kd, mnt.im_dev);
86 vn->vn_mode = (mode_t)isonode.inode.iso_mode;
87 vn->vn_fileid = isonode.i_number;
88 vn->vn_size = isonode.i_size;
H A Dmsdosfs.c79 msdosfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) argument
118 vn->vn_fsid = dev2udev(kd, mnt->data.pm_dev);
119 vn->vn_mode = 0555;
120 vn->vn_mode |= denode.de_Attributes & ATTR_READONLY ? 0 : 0222;
121 vn->vn_mode &= mnt->data.pm_mask;
124 vn->vn_mode |= denode.de_Attributes & ATTR_DIRECTORY ? S_IFDIR : S_IFREG;
125 vn->vn_size = denode.de_FileSize;
151 vn->vn_fileid = fileid;
H A Dzfs.c67 zfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) argument
120 vn->vn_fsid = mount.mnt_stat.f_fsid.val[0];
121 vn->vn_fileid = *zid;
127 vn->vn_mode = (mode_t)zphys.zp_mode;
128 vn->vn_size = (u_long)zphys.zp_size;
H A Dudf.c79 udf_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn) argument
86 assert(vn);
98 vn->vn_fileid = node.hash_id;
99 vn->vn_fsid = dev2udev(kd, mnt.im_dev);
H A Dlibprocstat.c150 struct vnstat *vn, char *errbuf);
152 struct vnstat *vn, char *errbuf);
1210 struct vnstat *vn, char *errbuf)
1213 assert(vn);
1215 return (procstat_get_vnode_info_kvm(procstat->kd, fst, vn,
1219 return (procstat_get_vnode_info_sysctl(fst, vn, errbuf));
1230 struct vnstat *vn, char *errbuf)
1237 struct vnstat *vn);
1258 assert(vn);
1268 bzero(vn, sizeo
1209 procstat_get_vnode_info(struct procstat *procstat, struct filestat *fst, struct vnstat *vn, char *errbuf) argument
1229 procstat_get_vnode_info_kvm(kvm_t *kd, struct filestat *fst, struct vnstat *vn, char *errbuf) argument
1343 procstat_get_vnode_info_sysctl(struct filestat *fst, struct vnstat *vn, char *errbuf) argument
[all...]
/freebsd-11-stable/sys/fs/pseudofs/
H A Dpseudofs_vnops.c139 struct vnode *vn = va->a_vp; local
140 struct pfs_vdata *pvd = vn->v_data;
147 error = VOP_GETATTR(vn, &vattr, va->a_cred);
150 error = vaccess(vn->v_type, vattr.va_mode, vattr.va_uid,
161 struct vnode *vn = va->a_vp; local
162 struct pfs_vdata *pvd = vn->v_data;
174 if (vrefcnt(vn) > 1 || pn->pn_close == NULL)
197 struct vnode *vn = va->a_vp; local
198 struct pfs_vdata *pvd = vn->v_data;
210 vap->va_type = vn
265 struct vnode *vn; local
318 struct vnode *vn = va->a_vp; local
431 struct vnode *vn = va->a_dvp; local
584 struct vnode *vn = va->a_vp; local
610 struct vnode *vn = va->a_vp; local
755 struct vnode *vn = va->a_vp; local
875 struct vnode *vn = va->a_vp; local
939 struct vnode *vn = va->a_vp; local
955 struct vnode *vn = va->a_vp; local
971 struct vnode *vn = va->a_vp; local
[all...]
/freebsd-11-stable/contrib/gcc/
H A Dopt-functions.awk138 vn = var_name(flags);
139 if (vn)
146 vn = var_name(flags);
147 if (vn)
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-nsh.c51 int n, vn; local
145 for (vn = 0; vn < tlv_len; vn++) {
148 ND_PRINT((ndo, "\n Value[%02d]: 0x%08x", vn, ctx));
/freebsd-11-stable/usr.bin/fstat/
H A Dfstat.c231 struct vnstat vn; local
242 error = procstat_get_vnode_info(procstat, fst, &vn, errbuf);
247 if (d->fsid == vn.vn_fsid) {
249 if (d->ino == vn.vn_fileid) {
484 struct vnstat vn; local
491 error = procstat_get_vnode_info(procstat, fst, &vn, errbuf);
494 else if (vn.vn_type == PS_FST_VTYPE_VBAD)
496 else if (vn.vn_type == PS_FST_VTYPE_VNON)
504 printf(" %#5jx", (uintmax_t)vn.vn_fsid);
505 else if (vn
[all...]
H A Dfuser.c289 struct vnstat vn; local
303 error = procstat_get_vnode_info(procstat, fst, &vn, errbuf);
307 if (flags & CFLAG && reqfiles[i].fsid == vn.vn_fsid) {
310 else if (reqfiles[i].fsid == vn.vn_fsid &&
311 reqfiles[i].fileid == vn.vn_fileid) {
315 (vn.vn_type == PS_FST_VTYPE_VCHR ||
316 vn.vn_type == PS_FST_VTYPE_VBLK) &&
317 vn.vn_fsid == reqfiles[i].fileid) {
/freebsd-11-stable/tools/diag/dumpvfscache/
H A Ddumpvfscache.c74 struct vnode vn; local
99 kvm_read(kvm, (u_long)nc->nc_dvp, &vn, sizeof vn); local
111 /* kn += (u_long)vn.v_data >> 8; */
113 kn += vn.v_id;
118 i,nc->nc_dvp, k, nc->nc_vp, vn.v_id, nc->nc_name);
/freebsd-11-stable/contrib/nvi/regex/
H A Dregexec.c116 #define STATEVARS int vn; char *space
119 (m)->vn = 0; }
121 #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates])
/freebsd-11-stable/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-11-stable/sys/cam/ctl/
H A Dctl_backend_block.c154 struct vnode *vn; member in struct:ctl_be_block_lun
581 (void) vn_start_write(be_lun->vn, &mountpoint, V_WAIT);
584 ((mountpoint == NULL) && MNT_SHARED_WRITES(be_lun->vn->v_mount)))
588 vn_lock(be_lun->vn, lock_flags | LK_RETRY);
589 error = VOP_FSYNC(be_lun->vn, beio->io_arg ? MNT_NOWAIT : MNT_WAIT,
591 VOP_UNLOCK(be_lun->vn, 0);
665 vn_lock(be_lun->vn, LK_SHARED | LK_RETRY);
684 error = VOP_READ(be_lun->vn, &xuio, flags, file_data->cred);
686 VOP_UNLOCK(be_lun->vn, 0);
708 (void)vn_start_write(be_lun->vn,
[all...]
/freebsd-11-stable/lib/libc/regex/
H A Dregexec.c158 #define STATEVARS long vn; char *space
161 (m)->vn = 0; }
163 #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates])
/freebsd-11-stable/sys/fs/fdescfs/
H A Dfdesc_vnops.c614 struct vnode *vp, *vn; local
625 vn = va->a_vp;
626 if (VTOFDESC(vn)->fd_type != Fdesc)
628 fd_fd = ((struct fdescnode *)vn->v_data)->fd_fd;
629 lockflags = VOP_ISLOCKED(vn);
630 VOP_UNLOCK(vn, 0);
656 vn_lock(vn, lockflags | LK_RETRY);
/freebsd-11-stable/sys/dev/xen/blkback/
H A Dblkback.c704 struct vnode *vn; member in struct:xbb_softc
2279 (void) vn_start_write(xbb->vn, &mountpoint, V_WAIT);
2281 vn_lock(xbb->vn, LK_EXCLUSIVE | LK_RETRY);
2282 error = VOP_FSYNC(xbb->vn, MNT_WAIT, curthread);
2283 VOP_UNLOCK(xbb->vn, 0);
2377 vn_lock(xbb->vn, LK_EXCLUSIVE | LK_RETRY);
2399 error = VOP_READ(xbb->vn, &xuio, (flags & BIO_ORDERED) ?
2402 VOP_UNLOCK(xbb->vn, 0);
2411 (void)vn_start_write(xbb->vn, &mountpoint, V_WAIT);
2413 vn_lock(xbb->vn, LK_EXCLUSIV
[all...]
/freebsd-11-stable/usr.bin/procstat/
H A Dprocstat_files.c294 struct vnstat vn; local
431 &vn, NULL);
432 switch (vn.vn_type) {
/freebsd-11-stable/sys/dev/acpica/
H A Dacpi_video.c291 struct acpi_video_output *vo, *vn; local
301 STAILQ_FOREACH_SAFE(vo, &sc->vid_outputs, vo_next, vn) {
313 struct acpi_video_output *vo, *vn; local
321 STAILQ_FOREACH_SAFE(vo, &sc->vid_outputs, vo_next, vn) {
462 struct acpi_video_output *vn, *vo, *vp; local
506 STAILQ_FOREACH(vn, voqh, vo_unit.next) {
507 if (vn->vo_unit.num != n)
509 vp = vn;
/freebsd-11-stable/contrib/wpa/src/ap/
H A Dgas_serv.c324 struct hostapd_lang_string *vn; local
325 vn = &hapd->conf->venue_name[i];
326 wpabuf_put_u8(buf, 3 + vn->name_len);
327 wpabuf_put_data(buf, vn->lang, 3);
328 wpabuf_put_data(buf, vn->name, vn->name_len);
652 struct hostapd_lang_string *vn; local
653 vn = &hapd->conf->hs20_oper_friendly_name[i];
654 wpabuf_put_u8(buf, 3 + vn->name_len);
655 wpabuf_put_data(buf, vn
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dldebug.c427 const char *vn = (op == OP_GETTABLE) /* name of indexed variable */ local
431 return (vn && strcmp(vn, LUA_ENV) == 0) ? "global" : "field";
/freebsd-11-stable/contrib/elftoolchain/elfdump/
H A Delfdump.c2555 Elf32_Verneed *vn; local
2578 vn = (Elf32_Verneed *) (uintptr_t) buf;
2581 get_string(ed, s->link, vn->vn_file));
2584 PRT("\tvn_version: %u\n", vn->vn_version);
2585 PRT("\tvn_cnt: %u\n", vn->vn_cnt);
2587 get_string(ed, s->link, vn->vn_file));
2588 PRT("\tvn_aux: %u\n", vn->vn_aux);
2589 PRT("\tvn_next: %u\n\n", vn->vn_next);
2591 buf2 = buf + vn->vn_aux;
2594 while (buf2 + sizeof(Elf32_Vernaux) <= end && j < vn
[all...]

Completed in 147 milliseconds

12