/freebsd-11-stable/contrib/tcpdump/ |
H A D | parsenfsfh.c | 114 register const unsigned char *fhp = fh; local 157 else if ((fhp[0] == 0) && (fhp[1] == 0)) { 160 if ((fhp[2] == 0) && (fhp[3] == 0)) { 170 if ((fhp[4] != 0) && (fhp[5] == 0) && 171 (fhp[8] == 12) && (fhp[9] == 0)) { 177 /* XXX the test of fhp[ 454 is_UCX(const unsigned char *fhp, u_int len) argument [all...] |
/freebsd-11-stable/contrib/netbsd-tests/fs/vfs/ |
H A D | t_vfsops.c | 80 void *fhp; local 105 fhp = malloc(fhsize); 106 if (rump_sys_getfh(fpath, fhp, &fhsize) == -1) 110 fd = rump_sys_fhopen(fhp, fhsize, O_RDONLY); 129 void *fhp; local 145 fhp = malloc(fhsize); 146 RL(rump_sys_getfh(FNAME, fhp, &fhsize)); 152 ATF_REQUIRE_ERRNO(ESTALE, rump_sys_fhopen(fhp, fhsize, O_RDONLY) == -1); 167 void *fhp; local 184 fhp [all...] |
/freebsd-11-stable/contrib/smbfs/lib/smb/ |
H A D | print.c | 57 char *ident, smbfh *fhp) 75 mb_get_uint16(mbp, fhp); 56 smb_smb_open_print_file(struct smb_ctx *ctx, int setuplen, int mode, char *ident, smbfh *fhp) argument
|
/freebsd-11-stable/contrib/amd/amd/ |
H A D | amfs_host.c | 172 do_mount(am_nfs_handle_t *fhp, char *mntdir, char *fs_name, mntfs *mf) argument 184 return mount_nfs_fh(fhp, mntdir, fs_name, mf); 202 fetch_fhandle(CLIENT *client, char *dir, am_nfs_handle_t *fhp, u_long nfs_version) argument 251 memset((voidp) &fhp->v3, 0, sizeof(am_nfs_fh3)); 252 fhp->v3.am_fh3_length = res3.mountres3_u.mountinfo.fhandle.fhandle3_len; 253 memmove(fhp->v3.am_fh3_data, 255 fhp->v3.am_fh3_length); 275 memmove(&fhp->v2, &res.fhs_fh, NFS_FHSIZE);
|
H A D | autil.c | 527 am_nfs_handle_t *fhp, anh; local 536 fhp = get_root_nfs_fh(dir, &anh); 537 if (!fhp) { 568 fhp, 589 fhp,
|
H A D | nfs_subr.c | 91 static am_node *fh_to_mp3(am_nfs_fh *fhp, int *rp, int vop); 92 static am_node *fh_to_mp(am_nfs_fh *fhp); 747 fh_to_mp3(am_nfs_fh *fhp, int *rp, int vop) argument 749 struct am_fh *fp = (struct am_fh *) fhp; 754 int len = sizeof(*fhp) - sizeof(fp->fhh_gen); 757 * Because fhp is treated as a filehandle we use memcpy 790 fh_to_mp(am_nfs_fh *fhp) argument 794 return fh_to_mp3(fhp, &dummy, VLOOK_CREATE); 798 fh3_to_mp3(am_nfs_fh3 *fhp, int *rp, int vop) argument 800 struct am_fh3 *fp = (struct am_fh3 *) fhp 841 fh3_to_mp(am_nfs_fh3 *fhp) argument 852 mp_to_fh(am_node *mp, am_nfs_fh *fhp) argument 893 mp_to_fh3(am_node *mp, am_nfs_fh3 *fhp) argument [all...] |
H A D | amd.h | 559 extern int mount_nfs_fh(am_nfs_handle_t *fhp, char *mntdir, char *fs_name, mntfs *mf); 638 extern void mp_to_fh3(am_node *mp, am_nfs_fh3 *fhp);
|
H A D | ops_nfs.c | 779 mount_nfs_fh(am_nfs_handle_t *fhp, char *mntdir, char *fs_name, mntfs *mf) argument 909 fhp, 933 error = mount_nfs_fh(fhp, mntdir, fs_name, mf);
|
/freebsd-11-stable/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); 158 !bcmp(fhp, nmp->nm_fh, fhsize)) { 166 bcopy(fhp, np->n_fhp->nfh_fh, fhsize);
|
H A D | nfs_clstate.c | 346 struct nfsclopen **nopp, u_int8_t *own, u_int8_t *fhp, int fhlen, 380 /* If an fhp has been specified, create an Open as well. */ 381 if (fhp != NULL) { 385 !NFSBCMP(op->nfso_fh, fhp, fhlen)) 394 NFSBCOPY(fhp, nop->nfso_fh, fhlen); 479 nfscl_finddeleg(struct nfsclclient *clp, u_int8_t *fhp, int fhlen) argument 483 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, fhp, fhlen), nfsdl_hash) { 485 !NFSBCMP(dp->nfsdl_fh, fhp, fhlen)) 3769 nfscl_localconflict(struct nfsclclient *clp, u_int8_t *fhp, int fhlen, argument 3785 !NFSBCMP(op->nfso_fh, fhp, fhle 344 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, struct ucred *cred, int *newonep) argument 4143 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 4173 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 4207 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 4783 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 4886 nfscl_getlayout(struct nfsclclient *clp, uint8_t *fhp, int fhlen, uint64_t off, struct nfsclflayout **retflpp, int *recalledp) argument 4933 nfscl_retoncloselayout(vnode_t vp, struct nfsclclient *clp, uint8_t *fhp, int fhlen, struct nfsclrecalllayout **recallpp) argument 5019 nfscl_findlayout(struct nfsclclient *clp, u_int8_t *fhp, int fhlen) argument [all...] |
H A D | nfs_clrpcops.c | 1083 nfsrpc_getattrnovp(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, int syscred, argument 1091 nfscl_reqstart(nd, NFSPROC_GETATTR, nmp, fhp, fhlen, NULL, NULL); 2644 struct nfsfh *fhp; local 2651 fhp = VTONFS(dvp)->n_fhp; 2669 (void) nfsm_fhtom(nd, fhp->nfh_fh, fhp->nfh_len, 0); 4830 nfsrpc_layoutget(struct nfsmount *nmp, uint8_t *fhp, int fhlen, int iomode, argument 4838 nfscl_reqstart(nd, NFSPROC_LAYOUTGET, nmp, fhp, fhlen, NULL, NULL); 5600 struct nfsfh *fhp; local 5623 fhp 5692 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 5736 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 5905 nfsrpc_commitds(vnode_t vp, uint64_t offset, int cnt, struct nfsclds *dsp, struct nfsfh *fhp, struct ucred *cred, NFSPROC_T *p) argument [all...] |
H A D | nfs_clport.c | 309 nfscl_ngetreopen(struct mount *mntp, u_int8_t *fhp, int fhsize, argument 323 bcopy(fhp, &nfhp->nfh_fh[0], fhsize); 326 hash = fnv_32_buf(fhp, fhsize, FNV1_32_INIT);
|
/freebsd-11-stable/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-11-stable/contrib/amd/libamu/ |
H A D | mount_fs.c | 846 * fhp: file handle structure pointer 858 am_nfs_handle_t *fhp, 877 if (fhp == NULL) { 890 NFS_FH_DREF(nap->NFS_FH_FIELD, &fhp->v3.am_fh3_data); 892 NFS_FH_DREF(nap->NFS_FH_FIELD, &fhp->v3); 903 if (fhp == NULL) { 908 NFS_FH_DREF(nap->NFS_FH_FIELD, &fhp->v2); 914 nap->fhsize = fhp->v3.am_fh3_length; 924 nap->fh_len = fhp->v3.am_fh3_length; 1240 * fhp 851 compute_nfs23_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 1245 compute_nfs4_args(nfs4_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 1388 compute_nfs_args(void *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 [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | netbsd_syscall_hooks.h | 823 #define __sanitizer_syscall_pre_compat_30_getfh(fname, fhp) \ 825 (long long)(fhp)) 826 #define __sanitizer_syscall_post_compat_30_getfh(res, fname, fhp) \ 828 (long long)(fhp)) 1557 #define __sanitizer_syscall_pre_compat_30_fhopen(fhp, flags) \ 1558 __sanitizer_syscall_pre_impl_compat_30_fhopen((long long)(fhp), \ 1560 #define __sanitizer_syscall_post_compat_30_fhopen(res, fhp, flags) \ 1561 __sanitizer_syscall_post_impl_compat_30_fhopen(res, (long long)(fhp), \ 1563 #define __sanitizer_syscall_pre_compat_30_fhstat(fhp, sb) \ 1564 __sanitizer_syscall_pre_impl_compat_30_fhstat((long long)(fhp), \ [all...] |
/freebsd-11-stable/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-11-stable/sys/fs/nfsserver/ |
H A D | nfs_nfsdserv.c | 80 struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, 86 struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, 503 vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, 566 nd->nd_repstat = nfsvno_getfh(vp, fhp, p); 585 (void) nfsm_fhtom(nd, (u_int8_t *)fhp, 0, 0); 588 (void) nfsm_fhtom(nd, (u_int8_t *)fhp, 0, 0); 1155 vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, 1296 nfsrvd_mkdirsub(nd, &named, &nva, fhp, vpp, dirp, 1304 nfsrvd_symlinksub(nd, &named, &nva, fhp, vpp, dirp, 1319 nd->nd_repstat = nfsvno_getfh(vp, fhp, 502 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 1154 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 1729 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 1804 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 1849 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 1937 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 2585 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 3719 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 | 210 nfsvno_getfh(struct vnode *vp, fhandle_t *fhp, struct thread *p) argument 214 NFSBZERO((caddr_t)fhp, sizeof(fhandle_t)); 215 fhp->fh_fsid = vp->v_mount->mnt_stat.f_fsid; 216 error = VOP_VPTOFH(vp, &fhp->fh_fid); 1529 struct nfsvattr *nvap, fhandle_t *fhp, int rderror, nfsattrbit_t *attrbitp, 1535 error = nfsv4_fillattr(nd, mp, vp, NULL, &nvap->na_vattr, fhp, rderror, 2767 nfsvno_fhtovp(struct mount *mp, fhandle_t *fhp, struct sockaddr *nam, argument 2775 error = VFS_FHTOVP(mp, &fhp->fh_fid, lktype, vpp); 2822 fhandle_t *fhp; local 2824 fhp 1528 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 3026 nfsvno_getvp(fhandle_t *fhp) argument 3339 nfsrv_hashfh(fhandle_t *fhp) argument [all...] |
H A D | nfs_nfsdstate.c | 131 nfsv4stateid_t *stateidp, int trunc, fhandle_t *fhp, 3651 fhandle_t *fhp = NULL; local 3660 fhp = &new_lfp->lf_fh; 3662 fhp = nfhp; 3666 error = nfsvno_getfh(vp, fhp, p); 3681 fhandle_t *fhp = NULL, *tfhp; local 3691 fhp = &new_lfp->lf_fh; 3693 fhp = nfhp; 3698 hp = NFSLOCKHASH(fhp); 3701 if (NFSVNO_CMPFH(fhp, tfh 4335 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 | 1430 nfsrv_mtofh(struct nfsrv_descript *nd, struct nfsrvfh *fhp) argument 1477 NFSBCOPY(tl, (caddr_t)fhp->nfsrvfh_data, copylen); 1478 fhp->nfsrvfh_len = copylen;
|
/freebsd-11-stable/sys/fs/tmpfs/ |
H A D | tmpfs_vfsops.c | 612 tmpfs_fhtovp(struct mount *mp, struct fid *fhp, int flags, argument 622 tfhp = (struct tmpfs_fid *)fhp;
|
/freebsd-11-stable/sys/fs/cd9660/ |
H A D | cd9660_vfsops.c | 587 cd9660_fhtovp(mp, fhp, flags, vpp) 589 struct fid *fhp; 598 memcpy(&ifh, fhp, sizeof(ifh));
|
/freebsd-11-stable/contrib/amd/include/ |
H A D | am_utils.h | 377 extern void compute_nfs_args(void *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-11-stable/sys/kern/ |
H A D | vfs_syscalls.c | 3888 fhandle_t *fhp; member in struct:lgetfh_args 3914 error = copyout(&fh, uap->fhp, sizeof (fh)); 3921 fhandle_t *fhp; member in struct:getfh_args 3947 error = copyout(&fh, uap->fhp, sizeof (fh)); 3969 struct fhandle fhp; local 3982 error = copyin(uap->u_fhp, &fhp, sizeof(fhp)); 3986 mp = vfs_busyfs(&fhp.fh_fsid); 3990 error = VFS_FHTOVP(mp, &fhp.fh_fid, LK_EXCLUSIVE, &vp);
|
/freebsd-11-stable/sys/fs/msdosfs/ |
H A D | msdosfs_vfsops.c | 986 msdosfs_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp) argument 989 struct defid *defhp = (struct defid *) fhp;
|