Lines Matching refs:pfsent
851 struct pfsentry *pfsent, *pfsent2; in pfs_readdir() local
917 if ((pfsent = malloc(sizeof(struct pfsentry), M_IOV, in pfs_readdir()
922 pfsent->entry.d_reclen = PFS_DELEN; in pfs_readdir()
923 pfsent->entry.d_fileno = pn_fileno(pn, pid); in pfs_readdir()
926 pfsent->entry.d_name[i] = pn->pn_name[i]; in pfs_readdir()
927 pfsent->entry.d_namlen = i; in pfs_readdir()
929 pfsent->entry.d_off = offset + PFS_DELEN; in pfs_readdir()
934 pfsent->entry.d_namlen = snprintf(pfsent->entry.d_name, in pfs_readdir()
941 pfsent->entry.d_type = DT_DIR; in pfs_readdir()
944 pfsent->entry.d_type = DT_REG; in pfs_readdir()
947 pfsent->entry.d_type = DT_LNK; in pfs_readdir()
952 PFS_TRACE(("%s", pfsent->entry.d_name)); in pfs_readdir()
953 dirent_terminate(&pfsent->entry); in pfs_readdir()
954 STAILQ_INSERT_TAIL(&lst, pfsent, link); in pfs_readdir()
965 STAILQ_FOREACH_SAFE(pfsent, &lst, link, pfsent2) { in pfs_readdir()
967 error = uiomove(&pfsent->entry, PFS_DELEN, uio); in pfs_readdir()
968 free(pfsent, M_IOV); in pfs_readdir()