Lines Matching refs:kif
2754 vn_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp) in vn_fill_kinfo() argument
2760 kif->kf_type = KF_TYPE_FIFO; in vn_fill_kinfo()
2762 kif->kf_type = KF_TYPE_VNODE; in vn_fill_kinfo()
2766 error = vn_fill_kinfo_vnode(vp, kif); in vn_fill_kinfo()
2773 vn_fill_junk(struct kinfo_file *kif) in vn_fill_junk() argument
2781 len = (arc4random() % (sizeof(kif->kf_path) - 2)) + 1; in vn_fill_junk()
2782 olen = strlen(kif->kf_path); in vn_fill_junk()
2784 strcpy(&kif->kf_path[len - 1], "$"); in vn_fill_junk()
2787 strcpy(&kif->kf_path[olen], "A"); in vn_fill_junk()
2791 vn_fill_kinfo_vnode(struct vnode *vp, struct kinfo_file *kif) in vn_fill_kinfo_vnode() argument
2797 kif->kf_un.kf_file.kf_file_type = vntype_to_kinfo(vp->v_type); in vn_fill_kinfo_vnode()
2802 strlcpy(kif->kf_path, fullpath, sizeof(kif->kf_path)); in vn_fill_kinfo_vnode()
2808 vn_fill_junk(kif); in vn_fill_kinfo_vnode()
2822 kif->kf_un.kf_file.kf_file_fsid = va.va_fsid; in vn_fill_kinfo_vnode()
2824 kif->kf_un.kf_file.kf_file_fsid = in vn_fill_kinfo_vnode()
2826 kif->kf_un.kf_file.kf_file_fsid_freebsd11 = in vn_fill_kinfo_vnode()
2827 kif->kf_un.kf_file.kf_file_fsid; /* truncate */ in vn_fill_kinfo_vnode()
2828 kif->kf_un.kf_file.kf_file_fileid = va.va_fileid; in vn_fill_kinfo_vnode()
2829 kif->kf_un.kf_file.kf_file_mode = MAKEIMODE(va.va_type, va.va_mode); in vn_fill_kinfo_vnode()
2830 kif->kf_un.kf_file.kf_file_size = va.va_size; in vn_fill_kinfo_vnode()
2831 kif->kf_un.kf_file.kf_file_rdev = va.va_rdev; in vn_fill_kinfo_vnode()
2832 kif->kf_un.kf_file.kf_file_rdev_freebsd11 = in vn_fill_kinfo_vnode()
2833 kif->kf_un.kf_file.kf_file_rdev; /* truncate */ in vn_fill_kinfo_vnode()
2834 kif->kf_un.kf_file.kf_file_nlink = va.va_nlink; in vn_fill_kinfo_vnode()