/freebsd-10.0-release/contrib/tcpdump/ |
H A D | parsenfsfh.c | 124 register const unsigned char *fhp = fh; local 160 else if ((fhp[0] == 0) && (fhp[1] == 0)) { 163 if ((fhp[2] == 0) && (fhp[3] == 0)) { 173 if ((fhp[4] != 0) && (fhp[5] == 0) && 174 (fhp[8] == 12) && (fhp[9] == 0)) { 180 /* XXX the test of fhp[ [all...] |
/freebsd-10.0-release/contrib/smbfs/lib/smb/ |
H A D | print.c | 57 const char *ident, smbfh *fhp) 75 mb_get_uint16(mbp, fhp); 56 smb_smb_open_print_file(struct smb_ctx *ctx, int setuplen, int mode, const char *ident, smbfh *fhp) argument
|
/freebsd-10.0-release/sys/nfsserver/ |
H A D | nfs_serv.c | 235 fhandle_t *fhp; local 247 fhp = &nfh.fh_generic; 248 nfsm_srvmtofh(fhp); 250 error = nfsrv_fhtovp(fhp, 0, &vp, nfsd, slp, nam, &rdonly); 305 fhandle_t *fhp; local 311 fhp = &nfh.fh_generic; 312 nfsm_srvmtofh(fhp); 313 error = nfsrv_fhtovp(fhp, 0, &vp, nfsd, slp, nam, &rdonly); 355 fhandle_t *fhp; local 365 fhp 504 fhandle_t *fhp; local 684 fhandle_t *fhp; local 789 fhandle_t *fhp; local 984 fhandle_t *fhp; local 1196 fhandle_t *fhp; local 1482 fhandle_t *fhp; local 1663 fhandle_t *fhp; local 1994 fhandle_t *fhp, *dfhp; local 2138 fhandle_t *fhp; local 2310 fhandle_t *fhp; local 2463 fhandle_t *fhp; local 2621 fhandle_t *fhp; local 2916 fhandle_t *fhp, *nfhp = (fhandle_t *)fl.fl_nfh; local 3287 fhandle_t *fhp; local 3455 fhandle_t *fhp; local 3543 fhandle_t *fhp; local 3616 fhandle_t *fhp; local [all...] |
H A D | nfs_srvsubs.c | 583 fhandle_t *fhp, int len, struct nfssvc_sock *slp, 638 if (!pubflag && nfs_ispublicfh(fhp)) 644 error = nfsrv_fhtovp(fhp, 0, &dp, nfsd, slp, nam, &rdonly); 1028 nfsrv_fhtovp(fhandle_t *fhp, int flags, struct vnode **vpp, argument 1047 if (nfs_ispublicfh(fhp)) { 1050 fhp = &nfs_pub.np_handle; 1053 mp = vfs_busyfs(&fhp->fh_fsid); 1098 error = VFS_FHTOVP(mp, &fhp->fh_fid, LK_EXCLUSIVE, vpp); 1149 nfs_ispublicfh(fhandle_t *fhp) argument 1151 char *cp = (char *)fhp; 582 nfs_namei(struct nameidata *ndp, struct nfsrv_descript *nfsd, fhandle_t *fhp, int len, struct nfssvc_sock *slp, struct sockaddr *nam, struct mbuf **mdp, caddr_t *dposp, struct vnode **retdirp, int v3, struct vattr *retdirattrp, int *retdirattr_retp, int pubflag) argument [all...] |
/freebsd-10.0-release/sys/fs/nfsclient/ |
H A D | nfs_clnode.c | 95 ncl_nget(struct mount *mntp, u_int8_t *fhp, int fhsize, struct nfsnode **npp, argument 110 hash = fnv_32_buf(fhp, fhsize, FNV1_32_INIT); 114 bcopy(fhp, &nfhp->nfh_fh[0], fhsize); 155 !bcmp(fhp, nmp->nm_fh, fhsize)) { 163 bcopy(fhp, np->n_fhp->nfh_fh, fhsize);
|
H A D | nfs_clstate.c | 324 struct nfsclopen **nopp, u_int8_t *own, u_int8_t *fhp, int fhlen, 358 /* If an fhp has been specified, create an Open as well. */ 359 if (fhp != NULL) { 363 !NFSBCMP(op->nfso_fh, fhp, fhlen)) 372 NFSBCOPY(fhp, nop->nfso_fh, fhlen); 455 nfscl_finddeleg(struct nfsclclient *clp, u_int8_t *fhp, int fhlen) argument 459 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, fhp, fhlen), nfsdl_hash) { 461 !NFSBCMP(dp->nfsdl_fh, fhp, fhlen)) 3667 nfscl_localconflict(struct nfsclclient *clp, u_int8_t *fhp, int fhlen, argument 3683 !NFSBCMP(op->nfso_fh, fhp, fhle 322 nfscl_newopen(struct nfsclclient *clp, struct nfscldeleg *dp, struct nfsclowner **owpp, struct nfsclowner **nowpp, struct nfsclopen **opp, struct nfsclopen **nopp, u_int8_t *own, u_int8_t *fhp, int fhlen, int *newonep) argument 4044 nfsrpc_reopen(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, u_int32_t mode, struct nfsclopen *op, struct nfscldeleg **dpp, struct ucred *cred, NFSPROC_T *p) argument 4074 nfscl_tryopen(struct nfsmount *nmp, vnode_t vp, u_int8_t *fhp, int fhlen, u_int8_t *newfhp, int newfhlen, u_int32_t mode, struct nfsclopen *op, u_int8_t *name, int namelen, struct nfscldeleg **ndpp, int reclaim, u_int32_t delegtype, struct ucred *cred, NFSPROC_T *p) argument 4108 nfscl_trylock(struct nfsmount *nmp, vnode_t vp, u_int8_t *fhp, int fhlen, struct nfscllockowner *nlp, int newone, int reclaim, u_int64_t off, u_int64_t len, short type, struct ucred *cred, NFSPROC_T *p) argument 4679 nfscl_layout(struct nfsmount *nmp, vnode_t vp, u_int8_t *fhp, int fhlen, nfsv4stateid_t *stateidp, int retonclose, struct nfsclflayouthead *fhlp, struct nfscllayout **lypp, struct ucred *cred, NFSPROC_T *p) argument 4782 nfscl_getlayout(struct nfsclclient *clp, uint8_t *fhp, int fhlen, uint64_t off, struct nfsclflayout **retflpp, int *recalledp) argument 4830 nfscl_retoncloselayout(struct nfsclclient *clp, uint8_t *fhp, int fhlen) argument 4912 nfscl_findlayout(struct nfsclclient *clp, u_int8_t *fhp, int fhlen) argument [all...] |
H A D | nfs_clrpcops.c | 1014 nfsrpc_getattrnovp(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, int syscred, argument 1022 nfscl_reqstart(nd, NFSPROC_GETATTR, nmp, fhp, fhlen, NULL, NULL); 4651 nfsrpc_layoutget(struct nfsmount *nmp, uint8_t *fhp, int fhlen, int iomode, argument 4666 nfscl_reqstart(nd, NFSPROC_LAYOUTGET, nmp, fhp, fhlen, NULL, NULL); 5556 struct nfsfh *fhp; local 5578 fhp = flp->nfsfl_fh[stripe_pos]; 5587 fhp = flp->nfsfl_fh[stripe_index]; 5589 fhp = flp->nfsfl_fh[0]; 5591 fhp = np->n_fhp; 5600 io_off, xfer, fhp, cre 5625 nfsrpc_readds(vnode_t vp, struct uio *uiop, nfsv4stateid_t *stateidp, int *eofp, struct nfsclds *dsp, uint64_t io_off, int len, struct nfsfh *fhp, struct ucred *cred, NFSPROC_T *p) argument 5669 nfsrpc_writeds(vnode_t vp, struct uio *uiop, int *iomode, int *must_commit, nfsv4stateid_t *stateidp, struct nfsclds *dsp, uint64_t io_off, int len, struct nfsfh *fhp, int commit_thru_mds, struct ucred *cred, NFSPROC_T *p) argument 5838 nfsrpc_commitds(vnode_t vp, uint64_t offset, int cnt, struct nfsclds *dsp, struct nfsfh *fhp, struct ucred *cred, NFSPROC_T *p, void *stuff) argument [all...] |
H A D | nfs_clport.c | 293 nfscl_ngetreopen(struct mount *mntp, u_int8_t *fhp, int fhsize, argument 307 bcopy(fhp, &nfhp->nfh_fh[0], fhsize); 310 hash = fnv_32_buf(fhp, fhsize, FNV1_32_INIT);
|
/freebsd-10.0-release/contrib/amd/amd/ |
H A D | amfs_host.c | 176 do_mount(am_nfs_handle_t *fhp, char *mntdir, char *fs_name, mntfs *mf) argument 188 return mount_nfs_fh(fhp, mntdir, fs_name, mf); 206 fetch_fhandle(CLIENT *client, char *dir, am_nfs_handle_t *fhp, u_long nfs_version) argument 248 memset((voidp) &fhp->v3, 0, sizeof(am_nfs_fh3)); 249 fhp->v3.am_fh3_length = res3.mountres3_u.mountinfo.fhandle.fhandle3_len; 250 memmove(fhp->v3.am_fh3_data, 252 fhp->v3.am_fh3_length); 272 memmove(&fhp->v2, &res.fhs_fh, NFS_FHSIZE);
|
H A D | nfs_subr.c | 84 static am_node *fh_to_mp3(am_nfs_fh *fhp, int *rp, int vop); 85 static am_node *fh_to_mp(am_nfs_fh *fhp); 633 fh_to_mp3(am_nfs_fh *fhp, int *rp, int vop) argument 635 struct am_fh *fp = (struct am_fh *) fhp; 640 int len = sizeof(*fhp) - sizeof(fp->fhh_gen); 643 * Because fhp is treated as a filehandle we use memcpy 777 fh_to_mp(am_nfs_fh *fhp) argument 781 return fh_to_mp3(fhp, &dummy, VLOOK_CREATE); 789 mp_to_fh(am_node *mp, am_nfs_fh *fhp) argument 792 struct am_fh *fp = (struct am_fh *) fhp; [all...] |
H A D | autil.c | 528 am_nfs_fh *fhp; local 538 fhp = get_root_nfs_fh(dir); 539 if (!fhp) { 562 memmove(&anh.v2, fhp, sizeof(*fhp));
|
/freebsd-10.0-release/sys/nfsclient/ |
H A D | nfs_node.c | 105 nfs_nget(struct mount *mntp, nfsfh_t *fhp, int fhsize, struct nfsnode **npp, int flags) argument 119 hash = fnv_32_buf(fhp->fh_bytes, fhsize, FNV1_32_INIT); 121 ncmp.fh = fhp; 159 bcopy((caddr_t)fhp, (caddr_t)np->n_fhp, fhsize);
|
H A D | nfs_vnops.c | 937 nfsfh_t *fhp; local 1054 nfsm_getfh(fhp, fhsize, v3); 1060 if (NFS_CMPFH(np, fhp, fhsize)) { 1064 error = nfs_nget(mp, fhp, fhsize, &np, LK_EXCLUSIVE); 1100 error = nfs_nget(mp, fhp, fhsize, &np, cnp->cn_lkflags); 1119 } else if (NFS_CMPFH(np, fhp, fhsize)) { 1123 error = nfs_nget(mp, fhp, fhsize, &np, cnp->cn_lkflags); 2483 nfsfh_t *fhp; local 2644 nfsm_getfh(fhp, fhsize, 1); 2645 if (NFS_CMPFH(dnp, fhp, fhsiz [all...] |
/freebsd-10.0-release/usr.sbin/repquota/ |
H A D | repquota.c | 316 struct fileusage *fup, **fhp; local 327 fhp = &fuhead[type][id & (FUHASH - 1)]; 328 fup->fu_next = *fhp; 329 *fhp = fup;
|
/freebsd-10.0-release/contrib/amd/libamu/ |
H A D | mount_fs.c | 456 * fhp: file handle structure pointer 468 am_nfs_handle_t *fhp, 490 NFS_FH_DREF(nap->NFS_FH_FIELD, &fhp->v3.am_fh3_data); 492 NFS_FH_DREF(nap->NFS_FH_FIELD, &fhp->v3); 502 NFS_FH_DREF(nap->NFS_FH_FIELD, &fhp->v2); 507 nap->fhsize = fhp->v3.am_fh3_length; 517 nap->fh_len = fhp->v3.am_fh3_length; 461 compute_nfs_args(nfs_args_t *nap, mntent_t *mntp, int genflags, struct netconfig *nfsncp, struct sockaddr_in *ip_addr, u_long nfs_version, char *nfs_proto, am_nfs_handle_t *fhp, char *host_name, char *fs_name) argument
|
/freebsd-10.0-release/sbin/quotacheck/ |
H A D | quotacheck.c | 558 struct fileusage *fup, **fhp; local 569 fhp = &fuhead[type][id & (FUHASH - 1)]; 570 fup->fu_next = *fhp; 571 *fhp = fup;
|
/freebsd-10.0-release/sys/fs/tmpfs/ |
H A D | tmpfs_vfsops.c | 346 tmpfs_fhtovp(struct mount *mp, struct fid *fhp, int flags, argument 356 tfhp = (struct tmpfs_fid *)fhp;
|
/freebsd-10.0-release/sys/fs/nfsserver/ |
H A D | nfs_nfsdserv.c | 75 struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, 81 struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, 482 vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, 545 nd->nd_repstat = nfsvno_getfh(vp, fhp, p); 564 (void) nfsm_fhtom(nd, (u_int8_t *)fhp, 0, 0); 567 (void) nfsm_fhtom(nd, (u_int8_t *)fhp, 0, 0); 1126 vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, 1267 nfsrvd_mkdirsub(nd, &named, &nva, fhp, vpp, dirp, 1275 nfsrvd_symlinksub(nd, &named, &nva, fhp, vpp, dirp, 1290 nd->nd_repstat = nfsvno_getfh(vp, fhp, 481 nfsrvd_lookup(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, struct nfsexstuff *exp) argument 1125 nfsrvd_mknod(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, struct nfsexstuff *exp) argument 1707 nfsrvd_symlink(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, struct nfsexstuff *exp) argument 1782 nfsrvd_symlinksub(struct nfsrv_descript *nd, struct nameidata *ndp, struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, vnode_t dirp, struct nfsvattr *dirforp, struct nfsvattr *diraftp, int *diraft_retp, nfsattrbit_t *attrbitp, NFSACL_T *aclp, NFSPROC_T *p, struct nfsexstuff *exp, char *pathcp, int pathlen) argument 1827 nfsrvd_mkdir(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, struct nfsexstuff *exp) argument 1915 nfsrvd_mkdirsub(struct nfsrv_descript *nd, struct nameidata *ndp, struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, vnode_t dirp, struct nfsvattr *dirforp, struct nfsvattr *diraftp, int *diraft_retp, nfsattrbit_t *attrbitp, NFSACL_T *aclp, NFSPROC_T *p, struct nfsexstuff *exp) argument 2536 nfsrvd_open(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, vnode_t *vpp, __unused fhandle_t *fhp, NFSPROC_T *p, struct nfsexstuff *exp) argument 3467 nfsrvd_openattr(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, __unused vnode_t *vpp, __unused fhandle_t *fhp, __unused NFSPROC_T *p, __unused struct nfsexstuff *exp) argument [all...] |
H A D | nfs_nfsdport.c | 198 nfsvno_getfh(struct vnode *vp, fhandle_t *fhp, struct thread *p) argument 202 NFSBZERO((caddr_t)fhp, sizeof(fhandle_t)); 203 fhp->fh_fsid = vp->v_mount->mnt_stat.f_fsid; 204 error = VOP_VPTOFH(vp, &fhp->fh_fid); 1490 struct nfsvattr *nvap, fhandle_t *fhp, int rderror, nfsattrbit_t *attrbitp, 1496 error = nfsv4_fillattr(nd, mp, vp, NULL, &nvap->na_vattr, fhp, rderror, 2634 nfsvno_fhtovp(struct mount *mp, fhandle_t *fhp, struct sockaddr *nam, argument 2642 error = VFS_FHTOVP(mp, &fhp->fh_fid, lktype, vpp); 2683 fhandle_t *fhp; local 2685 fhp 1489 nfsvno_fillattr(struct nfsrv_descript *nd, struct mount *mp, struct vnode *vp, struct nfsvattr *nvap, fhandle_t *fhp, int rderror, nfsattrbit_t *attrbitp, struct ucred *cred, struct thread *p, int isdgram, int reterr, int supports_nfsv4acls, int at_root, uint64_t mounted_on_fileno) argument 2921 nfsvno_getvp(fhandle_t *fhp) argument 3243 nfsrv_hashfh(fhandle_t *fhp) argument [all...] |
H A D | nfs_nfsdstate.c | 94 nfsv4stateid_t *stateidp, int trunc, fhandle_t *fhp, 3148 fhandle_t *fhp = NULL; local 3158 fhp = &new_lfp->lf_fh; 3160 fhp = nfhp; 3164 error = nfsvno_getfh(vp, fhp, p); 3179 fhandle_t *fhp = NULL, *tfhp; local 3189 fhp = &new_lfp->lf_fh; 3191 fhp = nfhp; 3196 hp = NFSLOCKHASH(fhp); 3199 if (NFSVNO_CMPFH(fhp, tfh 3687 nfsrv_docallback(struct nfsclient *clp, int procnum, nfsv4stateid_t *stateidp, int trunc, fhandle_t *fhp, struct nfsvattr *nap, nfsattrbit_t *attrbitp, NFSPROC_T *p) argument [all...] |
H A D | nfs_nfsdsubs.c | 1417 nfsrv_mtofh(struct nfsrv_descript *nd, struct nfsrvfh *fhp) argument 1464 NFSBCOPY(tl, (caddr_t)fhp->nfsrvfh_data, copylen); 1465 fhp->nfsrvfh_len = copylen;
|
/freebsd-10.0-release/lib/libstand/ |
H A D | nfs.c | 219 nfs_getrootfh(struct iodesc *d, char *path, u_char *fhp) argument 266 bcopy(repl->fh, fhp, sizeof(repl->fh)); 819 nfs_getrootfh(struct iodesc *d, char *path, uint32_t *fhlenp, u_char *fhp) argument 869 bcopy(repl->fh, fhp, *fhlenp);
|
/freebsd-10.0-release/sys/fs/cd9660/ |
H A D | cd9660_vfsops.c | 593 cd9660_fhtovp(mp, fhp, flags, vpp) 595 struct fid *fhp; 604 memcpy(&ifh, fhp, sizeof(ifh));
|
/freebsd-10.0-release/contrib/amd/include/ |
H A D | am_utils.h | 370 extern void compute_nfs_args(nfs_args_t *nap, mntent_t *mntp, int genflags, struct netconfig *nfsncp, struct sockaddr_in *ip_addr, u_long nfs_version, char *nfs_proto, am_nfs_handle_t *fhp, char *host_name, char *fs_name);
|
/freebsd-10.0-release/sys/kern/ |
H A D | vfs_syscalls.c | 4218 fhandle_t *fhp; member in struct:lgetfh_args 4246 error = copyout(&fh, uap->fhp, sizeof (fh)); 4253 fhandle_t *fhp; member in struct:getfh_args 4281 error = copyout(&fh, uap->fhp, sizeof (fh)); 4308 struct fhandle fhp; local 4321 error = copyin(uap->u_fhp, &fhp, sizeof(fhp)); 4325 mp = vfs_busyfs(&fhp.fh_fsid); 4329 error = VFS_FHTOVP(mp, &fhp.fh_fid, LK_EXCLUSIVE, &vp);
|