HomeSort by: relevance | last modified time | path
    Searched defs:ndp (Results 1 - 18 of 18) sorted by relevancy

  /src/lib/libc/compat/sys/
compat_getdents.c 53 struct dirent *ndp, *nndp, *endp; local in function:getdents
63 ndp = (struct dirent *)(void *)buf;
68 * is smaller than ndp, but it has to be done
71 for (; ndp < endp; ndp = nndp) {
72 nndp = _DIRENT_NEXT(ndp);
75 memcpy(&ino, &ndp->d_ino, sizeof(ino_t));
77 if (ndp->d_namlen >= sizeof(odp->d_name))
80 odp->d_namlen = (u_int8_t)ndp->d_namlen;
81 odp->d_type = ndp->d_type
    [all...]
  /src/sbin/fsck_ext2fs/
dir.c 200 struct ext2fs_direct *dp, *ndp; local in function:fsck_readdir
236 ndp = (struct ext2fs_direct *)(bp->b_un.b_buf + idesc->id_loc);
238 dircheck(idesc, ndp) == 0) {
  /src/sbin/fsck_lfs/
dir.c 177 LFS_DIRHEADER *dp, *ndp; local in function:fsck_readdir
222 ndp = (LFS_DIRHEADER *) (bp->b_data + idesc->id_loc);
224 dircheck(idesc, ndp) == 0) {
  /src/sys/fs/unionfs/
unionfs_vfsops.c 82 struct nameidata nd, *ndp; local in function:unionfs_mount
106 ndp = &nd;
176 NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, pb);
177 if ((error = namei(ndp))) {
184 upperrootvp = ndp->ni_vp;
186 vrele(ndp->ni_dvp);
187 ndp->ni_dvp = NULLVP;
  /src/sys/netinet/
dccp_tfrc.h 183 u_int8_t ndp; /* no data packets value */ member in struct:r_hist_entry
dccp_var.h 88 u_int8_t ndp_rcv; /* ndp value of received packet */
92 u_int8_t ndp; /* Number of non data packets */ member in struct:dccpcb
  /src/sbin/fsck_ffs/
dir.c 245 struct direct *dp, *ndp; local in function:fsck_readdir
283 ndp = (struct direct *)(bp->b_un.b_buf + idesc->id_loc);
285 dircheck(idesc, ndp, bp) == 0) {
  /src/sys/compat/netbsd32/
netbsd32_conv.h 852 struct dirent *ndp, *nndp, *endp; local in function:netbsd32_to_dirent12
856 ndp = (struct dirent *)(void *)buf;
861 * is smaller than ndp, but it has to be done
864 for (; ndp < endp; ndp = nndp) {
865 nndp = _DIRENT_NEXT(ndp);
866 odp->d_fileno = (uint32_t)ndp->d_fileno;
867 if (ndp->d_namlen >= sizeof(odp->d_name))
870 odp->d_namlen = (uint8_t)ndp->d_namlen;
871 odp->d_type = ndp->d_type
    [all...]
  /src/sys/kern/
kern_hook.c 389 struct powerhook_desc *ndp; local in function:powerhook_establish
391 ndp = (struct powerhook_desc *)
392 malloc(sizeof(*ndp), M_DEVBUF, M_NOWAIT);
393 if (ndp == NULL)
396 ndp->sfd_fn = fn;
397 ndp->sfd_arg = arg;
398 strlcpy(ndp->sfd_name, name, sizeof(ndp->sfd_name));
399 TAILQ_INSERT_HEAD(&powerhook_list, ndp, sfd_list);
402 return (ndp);
    [all...]
vfs_lookup.c 438 * identify next component of name at ndp->ni_ptr
455 * cnp is always equal to &ndp->ni_cnp.
458 struct nameidata *ndp; member in struct:namei_state
466 unsigned root_referenced:1; /* true if ndp->ni_rootdir and
467 ndp->ni_erootdir were referenced */
475 namei_init(struct namei_state *state, struct nameidata *ndp)
478 state->ndp = ndp;
479 state->cnp = &ndp->ni_cnd;
499 state->ndp->ni_pnbuf = state->ndp->ni_pathbuf->pb_path
530 struct nameidata *ndp = state->ndp; local in function:namei_getstartdir
639 struct nameidata *ndp = state->ndp; local in function:namei_ktrace
674 struct nameidata *ndp = state->ndp; local in function:namei_start
737 struct nameidata *ndp = state->ndp; local in function:namei_follow
844 struct nameidata *ndp = state->ndp; local in function:lookup_parsepath
1080 struct nameidata *ndp = state->ndp; local in function:lookup_once
1272 struct nameidata *ndp = state->ndp; local in function:lookup_fastforward
1501 struct nameidata *ndp = state->ndp; local in function:namei_oneroot
1906 struct nameidata *ndp = state->ndp; local in function:namei_tryemulroot
2026 struct nameidata *ndp = state->ndp; local in function:do_lookup_for_nfsd_index
    [all...]
  /src/sys/nfs/
nfs_bio.c 87 struct nfsdircache *ndp = NULL, *nndp = NULL; local in function:nfs_bioread
198 ndp = nfs_searchdircache(vp, uio->uio_offset,
200 if (!ndp) {
213 ndp = nfs_enterdircache(vp, uio->uio_offset,
218 ndp->dc_cookie == np->n_direofoffset) {
219 nfs_putdircache(np, ndp);
224 bp = nfs_getcacheblk(vp, NFSDC_BLKNO(ndp), NFS_DIRBLKSIZ, l);
229 bp->b_dcookie = ndp->dc_blkcookie;
237 nfs_putdircache(np, ndp);
261 ndp->dc_blkcookie == np->n_direofoffset))
    [all...]
nfs_subs.c 1210 nfs_unlinkdircache(struct nfsnode *np, struct nfsdircache *ndp)
1214 KASSERT(ndp != &dzero);
1216 if (LIST_NEXT(ndp, dc_hash) == (void *)-1)
1219 TAILQ_REMOVE(&np->n_dirchain, ndp, dc_chain);
1220 LIST_REMOVE(ndp, dc_hash);
1221 LIST_NEXT(ndp, dc_hash) = (void *)-1; /* mark as unlinked */
1223 nfs_putdircache_unlocked(np, ndp);
1227 nfs_putdircache(struct nfsnode *np, struct nfsdircache *ndp)
1231 if (ndp == &dzero)
1234 KASSERT(ndp->dc_refcnt > 0)
1263 struct nfsdircache *ndp = NULL; local in function:nfs_searchdircache
1329 struct nfsdircache *ndp = NULL; local in function:nfs_enterdircache
1434 struct nfsdircache *ndp = NULL; local in function:nfs_invaldircache
    [all...]
nfs_serv.c 400 struct nameidata nd, ind, *ndp = &nd; local in function:nfsrv_lookup
449 ndp = &ind;
459 if (!error && ndp->ni_vp->v_mount != nfs_pub.np_mount) {
485 nqsrv_getl(ndp->ni_startdir, ND_READ);
490 vp = ndp->ni_vp;
1061 nfsrv_writegather(struct nfsrv_descript **ndp, struct nfssvc_sock *slp, struct lwp *lwp, struct mbuf **mrq)
1085 if (*ndp) {
1086 nfsd = *ndp;
1087 *ndp = NULL;
1358 *ndp = nfsd
    [all...]
nfs_vnops.c 2602 struct nameidata nami, *ndp = &nami; local in function:nfs_readdirplusrpc
2603 struct componentname *cnp = &ndp->ni_cnd;
2616 ndp->ni_dvp = vp;
2747 ndp->ni_vp = newvp;
2748 nfs_cache_enter(ndp->ni_dvp,
2749 ndp->ni_vp, cnp);
  /src/usr.bin/config/
sem.c 2238 char *mp, *ep, *ndp; local in function:fixloc
2275 ndp = nodefault;
2282 ndp = extend(ndp, n->ll_name);
2299 ndp[-2] = 0;
  /src/sys/fs/nfs/client/
nfs_clstate.c 1589 struct nfscldeleg *dp, *ndp; local in function:nfscl_expireclient
1597 ndp = TAILQ_NEXT(dp, nfsdl_list);
1648 dp = ndp;
1885 struct nfscldeleg *dp, *ndp, *tdp; local in function:nfscl_recover
1993 ndp = dp;
1999 op->nfso_mode, op, NULL, 0, &ndp, 1, delegtype,
2003 if (ndp != NULL && ((ndp->nfsdl_flags & NFSCLDL_WRITE)
2005 if ((ndp->nfsdl_flags & NFSCLDL_WRITE))
2016 dp->nfsdl_stateid = ndp->nfsdl_stateid
2445 struct nfscldeleg *dp, *ndp; local in function:nfscl_renewthread
3128 struct nfscldeleg *dp, *ndp; local in function:nfscl_delegreturnall
3940 struct nfscldeleg *ndp; local in function:nfscl_moveopen
    [all...]
nfs_clrpcops.c 386 struct nfscldeleg *dp, *ndp = NULL; local in function:nfsrpc_openrpc
456 MALLOC(ndp, struct nfscldeleg *,
459 LIST_INIT(&ndp->nfsdl_owner);
460 LIST_INIT(&ndp->nfsdl_lock);
461 ndp->nfsdl_clp = op->nfso_own->nfsow_clp;
462 ndp->nfsdl_fhlen = newfhlen;
463 NFSBCOPY(newfhp, ndp->nfsdl_fh, newfhlen);
464 newnfs_copyincred(cred, &ndp->nfsdl_cred);
465 nfscl_lockinit(&ndp->nfsdl_rwlock);
468 ndp->nfsdl_stateid.seqid = *tl++
3135 struct nameidata nami, *ndp = &nami; local in function:nfsrpc_readdirplus
    [all...]
  /src/lib/libperfuse/
ops.c 574 char *ndp; local in function:readdir_last_cookie
583 ndp = (char *)(void *)fd + (size_t)len;
584 fd = (struct fuse_dirent *)(void *)ndp;
608 char *ndp; local in function:fuse_to_dirent
639 ndp = (char *)(void *)dents + written;
640 dents = (struct dirent *)(void *)ndp;
725 ndp = (char *)(void *)fd_base + (size_t)fd_offset;
726 fd = (struct fuse_dirent *)(void *)ndp;
745 char *ndp; local in function:readdir_buffered
753 ndp = (char *)(void *)pnd->pnd_dirent + (size_t)*readoff
    [all...]

Completed in 32 milliseconds