/freebsd/contrib/tcpdump/ |
H A D | parsenfsfh.c | 90 const unsigned char *fhp = fh; in Parse_fh() local 133 else if ((GET_U_1(fhp) == 0) && (GET_U_1(fhp + 1) == 0)) { in Parse_fh() 136 if ((GET_U_1(fhp + 2) == 0) && (GET_U_1(fhp + 3) == 0)) { in Parse_fh() 145 if ((GET_U_1(fhp + 4) != 0) && (GET_U_1(fhp + 5) == 0) && in Parse_fh() 146 (GET_U_1(fhp + 8) == 12) && (GET_U_1(fhp + 9) == 0)) { in Parse_fh() 152 if ((GET_U_1(fhp + 4) == 0) && (GET_U_1(fhp + 5) == 8) && (GET_U_1(fhp + 6) == 0) && in Parse_fh() 153 (GET_U_1(fhp + 7) == 0)) { in Parse_fh() 168 if ((GET_U_1(fhp + 2) == 0) && (GET_U_1(fhp + 3) == 0)) { in Parse_fh() 175 if ((GET_U_1(fhp + 6) == 0) && (GET_U_1(fhp + 7) == 0)) { in Parse_fh() 179 else if ((len >= 24/4) && (GET_U_1(fhp + 21) == 0) && (GET_U_1(fhp + 23) == 0)) { in Parse_fh() [all …]
|
/freebsd/contrib/netbsd-tests/fs/vfs/ |
H A D | t_vfsops.c | 80 void *fhp; in tfilehandle() local 105 fhp = malloc(fhsize); in tfilehandle() 106 if (rump_sys_getfh(fpath, fhp, &fhsize) == -1) in tfilehandle() 110 fd = rump_sys_fhopen(fhp, fhsize, O_RDONLY); in tfilehandle() 129 void *fhp; in tfhremove() local 145 fhp = malloc(fhsize); in tfhremove() 146 RL(rump_sys_getfh(FNAME, fhp, &fhsize)); in tfhremove() 152 ATF_REQUIRE_ERRNO(ESTALE, rump_sys_fhopen(fhp, fhsize, O_RDONLY) == -1); in tfhremove() 167 void *fhp; in tfhinval() local 184 fhp = malloc(fhsize); in tfhinval() [all …]
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | nfs.cc | 75 fhandle_t fhp; in TEST_F() local 103 ASSERT_EQ(0, getfh(FULLPATH, &fhp)) << strerror(errno); in TEST_F() 104 ASSERT_EQ(-1, fhstat(&fhp, &sb)); in TEST_F() 113 fhandle_t fhp; in TEST_F() local 141 ASSERT_EQ(0, getfh(FULLPATH, &fhp)) << strerror(errno); in TEST_F() 142 ASSERT_EQ(0, fhstat(&fhp, &sb)) << strerror(errno); in TEST_F() 152 fhandle_t fhp; in TEST_F() local 172 ASSERT_EQ(0, getfh(FULLPATH, &fhp)) << strerror(errno); in TEST_F() 173 ASSERT_EQ(-1, fhstat(&fhp, &sb)); in TEST_F() 182 fhandle_t fhp; in TEST_F() local [all …]
|
H A D | last_local_modify.cc | 374 fhandle_t fhp; in TEST_P() local 474 ASSERT_EQ(0, getfh(FULLPATH, &fhp)) << strerror(errno); in TEST_P() 497 ASSERT_EQ(0, fhstat(&fhp, &sb)) << strerror(errno); in TEST_P()
|
/freebsd/sys/netinet/ |
H A D | in_fib_dxr.c | 345 struct heap_entry *fhp = &da->heap[0]; in dxr_lookup() 357 rt_get_inet_prefix_plen(rt, &addr, &fhp->preflen, &scopeid); in initheap() 358 fhp->start = ntohl(addr.s_addr); in initheap() 359 fhp->end = fhp->start; in initheap() 360 if (fhp->preflen < 32) in initheap() 361 fhp->end |= (0xffffffffU >> fhp->preflen); in initheap() 362 fhp->nexthop = fib_get_nhop_idx(da->fd, rnd.rnd_nhop); in initheap() 364 fhp in initheap() 356 struct heap_entry *fhp = &da->heap[0]; initheap() local 677 struct heap_entry *fhp; heap_inject() local 706 struct heap_entry *fhp = &da->heap[da->heap_index]; dxr_walk() local 767 struct heap_entry *fhp; update_chunk() local [all...] |
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | netbsd_syscall_hooks.h | 828 #define __sanitizer_syscall_pre_compat_30_getfh(fname, fhp) \ argument 830 (long long)(fhp)) 831 #define __sanitizer_syscall_post_compat_30_getfh(res, fname, fhp) \ argument 833 (long long)(fhp)) 1584 #define __sanitizer_syscall_pre_compat_30_fhopen(fhp, flags) \ argument 1585 __sanitizer_syscall_pre_impl_compat_30_fhopen((long long)(fhp), \ 1587 #define __sanitizer_syscall_post_compat_30_fhopen(res, fhp, flags) \ argument 1588 __sanitizer_syscall_post_impl_compat_30_fhopen(res, (long long)(fhp), \ 1590 #define __sanitizer_syscall_pre_compat_30_fhstat(fhp, sb) \ argument 1591 __sanitizer_syscall_pre_impl_compat_30_fhstat((long long)(fhp), \ [all …]
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clnode.c | 95 ncl_nget(struct mount *mntp, u_int8_t *fhp, int fhsize, struct nfsnode **npp, in ncl_nget() argument 110 hash = fnv_32_buf(fhp, fhsize, FNV1_32_INIT); in ncl_nget() 114 bcopy(fhp, &nfhp->nfh_fh[0], fhsize); in ncl_nget() 157 !bcmp(fhp, nmp->nm_fh, fhsize))) { in ncl_nget() 167 bcopy(fhp, np->n_fhp->nfh_fh, fhsize); in ncl_nget()
|
H A D | nfs_clstate.c | 349 struct nfsclopen **nopp, u_int8_t *own, u_int8_t *fhp, int fhlen, in nfscl_newopen() argument 384 if (fhp != NULL) { in nfscl_newopen() 388 !NFSBCMP(op->nfso_fh, fhp, fhlen)) in nfscl_newopen() 397 NFSBCOPY(fhp, nop->nfso_fh, fhlen); in nfscl_newopen() 412 LIST_INSERT_HEAD(NFSCLOPENHASH(clp, fhp, fhlen), in nfscl_newopen() 498 nfscl_finddeleg(struct nfsclclient *clp, u_int8_t *fhp, int fhlen) in nfscl_finddeleg() argument 502 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, fhp, fhlen), nfsdl_hash) { in nfscl_finddeleg() 504 !NFSBCMP(dp->nfsdl_fh, fhp, fhlen)) in nfscl_finddeleg() 4181 nfscl_localconflict(struct nfsclclient *clp, u_int8_t *fhp, int fhlen, in nfscl_localconflict() argument 4193 LIST_FOREACH(op, NFSCLOPENHASH(clp, fhp, fhlen), nfso_hash) { in nfscl_localconflict() [all …]
|
H A D | nfs_clrpcops.c | 120 struct nfsfh *fhp; member 1329 nfsrpc_getattrnovp(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, int syscred, in nfsrpc_getattrnovp() argument 1337 nfscl_reqstart(nd, NFSPROC_GETATTR, nmp, fhp, fhlen, NULL, NULL, 0, 0, in nfsrpc_getattrnovp() 3227 struct nfsfh *fhp; in nfsrpc_mkdir() local 3234 fhp = VTONFS(dvp)->n_fhp; in nfsrpc_mkdir() 3252 (void)nfsm_fhtom(nmp, nd, fhp->nfh_fh, fhp->nfh_len, 0); in nfsrpc_mkdir() 5145 u_char *cp, *cp2, *fhp; in nfsrpc_getdirpath() local 5193 fhp = malloc(len + 1, M_TEMP, M_WAITOK); in nfsrpc_getdirpath() 5194 nd->nd_repstat = nfsrv_mtostr(nd, fhp, le in nfsrpc_getdirpath() 5582 nfsrpc_layoutget(struct nfsmount * nmp,uint8_t * fhp,int fhlen,int iomode,uint64_t offset,uint64_t len,uint64_t minlen,int layouttype,int layoutlen,nfsv4stateid_t * stateidp,int * retonclosep,struct nfsclflayouthead * flhp,struct ucred * cred,NFSPROC_T * p) nfsrpc_layoutget() argument 6679 struct nfsfh *fhp; nfscl_doflayoutio() local 6784 struct nfsfh *fhp; nfscl_dofflayoutio() local 6956 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,int flex,int vers,int minorvers,struct ucred * cred,NFSPROC_T * p) nfsrpc_readds() argument 7032 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,int flex,int vers,int minorvers,struct ucred * cred,NFSPROC_T * p) nfsrpc_writeds() argument 7173 nfsrpc_writedsmir(vnode_t vp,int * iomode,int * must_commit,nfsv4stateid_t * stateidp,struct nfsclds * dsp,uint64_t io_off,int len,struct nfsfh * fhp,struct mbuf * m,int vers,int minorvers,struct ucred * cred,NFSPROC_T * p) nfsrpc_writedsmir() argument 7299 nfsio_writedsmir(vnode_t vp,int * iomode,int * must_commit,nfsv4stateid_t * stateidp,struct nfsclds * dsp,uint64_t off,int len,struct nfsfh * fhp,struct mbuf * m,int vers,int minorvers,struct nfsclwritedsdorpc * drpc,struct ucred * cred,NFSPROC_T * p) nfsio_writedsmir() argument 7404 nfsrpc_commitds(vnode_t vp,uint64_t offset,int cnt,struct nfsclds * dsp,struct nfsfh * fhp,int vers,int minorvers,struct ucred * cred,NFSPROC_T * p) nfsrpc_commitds() argument 7488 nfsio_commitds(vnode_t vp,uint64_t offset,int cnt,struct nfsclds * dsp,struct nfsfh * fhp,int vers,int minorvers,struct nfsclwritedsdorpc * drpc,struct ucred * cred,NFSPROC_T * p) nfsio_commitds() argument 7560 nfsrpc_adviseds(vnode_t vp,uint64_t offset,int cnt,int advise,struct nfsclds * dsp,struct nfsfh * fhp,int vers,int minorvers,struct ucred * cred,NFSPROC_T * p) nfsrpc_adviseds() argument 7630 nfsio_adviseds(vnode_t vp,uint64_t offset,int cnt,int advise,struct nfsclds * dsp,struct nfsfh * fhp,int vers,int minorvers,struct nfsclwritedsdorpc * drpc,struct ucred * cred,NFSPROC_T * p) nfsio_adviseds() argument [all...] |
H A D | nfs_clport.c | 326 nfscl_ngetreopen(struct mount *mntp, u_int8_t *fhp, int fhsize, in nfscl_ngetreopen() argument 340 bcopy(fhp, &nfhp->nfh_fh[0], fhsize); in nfscl_ngetreopen() 343 hash = fnv_32_buf(fhp, fhsize, FNV1_32_INIT); in nfscl_ngetreopen()
|
/freebsd/sys/fs/nfsserver/ |
H A D | nfs_nfsdport.c | 473 nfsvno_getfh(struct vnode *vp, fhandle_t *fhp, struct thread *p) in nfsvno_getfh() argument 477 NFSBZERO((caddr_t)fhp, sizeof(fhandle_t)); in nfsvno_getfh() 478 fhp->fh_fsid = vp->v_mount->mnt_stat.f_fsid; in nfsvno_getfh() 479 error = VOP_VPTOFH(vp, &fhp->fh_fid); in nfsvno_getfh() 2022 struct nfsvattr *nvap, fhandle_t *fhp, int rderror, nfsattrbit_t *attrbitp, in nfsvno_fillattr() argument 2041 error = nfsv4_fillattr(nd, mp, vp, NULL, &nvap->na_vattr, fhp, rderror, in nfsvno_fillattr() 3377 nfsvno_fhtovp(struct mount *mp, fhandle_t *fhp, struct sockaddr *nam, in nfsvno_fhtovp() argument 3385 error = VFS_FHTOVP(mp, &fhp->fh_fid, lktype, vpp); in nfsvno_fhtovp() 3434 fhandle_t *fhp; in nfsd_fhtovp() local 3440 fhp = (fhandle_t *)nfp->nfsrvfh_data; in nfsd_fhtovp() [all …]
|
H A D | nfs_nfsdstate.c | 174 nfsv4stateid_t *stateidp, int trunc, fhandle_t *fhp, 232 fhandle_t *fhp, struct nfslayout *lyp, int changed, int laytype, 234 static int nfsrv_findlayout(nfsquad_t *clientidp, fhandle_t *fhp, int laytype, 238 fhandle_t *fhp, fhandle_t *dsfhp, char *devid, fsid_t fs); 240 int mirrorcnt, fhandle_t *fhp, fhandle_t *dsfhp, char *devid, fsid_t fs); 241 static int nfsrv_dontlayout(fhandle_t *fhp); 242 static int nfsrv_createdsfile(vnode_t vp, fhandle_t *fhp, struct pnfsdsfile *pf, 3747 fhandle_t *fhp = NULL; in nfsrv_getlockfh() local 3756 fhp = &new_lfp->lf_fh; in nfsrv_getlockfh() 3758 fhp = nfhp; in nfsrv_getlockfh() [all …]
|
H A D | nfs_nfsdserv.c | 116 struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, 122 struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, 589 vnode_t dp, vnode_t *vpp, fhandle_t *fhp, struct nfsexstuff *exp) in nfsrvd_lookup() argument 650 nd->nd_repstat = nfsvno_getfh(vp, fhp, p); in nfsrvd_lookup() 676 (void)nfsm_fhtom(NULL, nd, (u_int8_t *)fhp, 0, 0); in nfsrvd_lookup() 679 (void)nfsm_fhtom(NULL, nd, (u_int8_t *)fhp, 0, 0); in nfsrvd_lookup() 1317 vnode_t dp, vnode_t *vpp, fhandle_t *fhp, struct nfsexstuff *exp) in nfsrvd_mknod() argument 1458 nfsrvd_mkdirsub(nd, &named, &nva, fhp, vpp, dirp, in nfsrvd_mknod() 1466 nfsrvd_symlinksub(nd, &named, &nva, fhp, vpp, dirp, in nfsrvd_mknod() 1481 nd->nd_repstat = nfsvno_getfh(vp, fhp, p); in nfsrvd_mknod() [all …]
|
H A D | nfs_nfsdsubs.c | 1473 nfsrv_mtofh(struct nfsrv_descript *nd, struct nfsrvfh *fhp) in nfsrv_mtofh() argument 1526 NFSBCOPY(tl, (caddr_t)fhp->nfsrvfh_data, copylen); in nfsrv_mtofh() 1527 fhp->nfsrvfh_len = copylen; in nfsrv_mtofh()
|
/freebsd/contrib/smbfs/lib/smb/ |
H A D | print.c | 57 char *ident, smbfh *fhp) in smb_smb_open_print_file() argument 75 mb_get_uint16(mbp, fhp); in smb_smb_open_print_file()
|
/freebsd/usr.sbin/repquota/ |
H A D | repquota.c | 304 struct fileusage *fup, **fhp; in addid() local 315 fhp = &fuhead[type][id & (FUHASH - 1)]; in addid() 316 fup->fu_next = *fhp; in addid() 317 *fhp = fup; in addid()
|
/freebsd/sbin/quotacheck/ |
H A D | quotacheck.c | 539 struct fileusage *fup, **fhp; 550 fhp = &fuhead[type][id & (FUHASH - 1)]; in addid() 551 fup->fu_next = *fhp; in addid() 552 *fhp = fup; in addid() 543 struct fileusage *fup, **fhp; addid() local
|
/freebsd/sys/kern/ |
H A D | vfs_syscalls.c | 104 enum uio_seg pathseg, fhandle_t *fhp); 4431 fhandle_t *fhp; member 4439 UIO_USERSPACE, uap->fhp, UIO_USERSPACE)); in sys_lgetfh() 4445 fhandle_t *fhp; member 4453 uap->fhp, UIO_USERSPACE)); in sys_getfh() 4467 fhandle_t *fhp; member 4476 uap->fhp, UIO_USERSPACE)); in sys_getfhat() 4481 enum uio_seg pathseg, fhandle_t *fhp, enum uio_seg fhseg) in kern_getfhat() argument 4507 error = copyout(&fh, fhp, sizeof (fh)); in kern_getfhat() 4509 memcpy(fhp, &fh, sizeof(fh)); in kern_getfhat() [all …]
|
/freebsd/sys/fs/tmpfs/ |
H A D | tmpfs_vfsops.c | 585 tmpfs_fhtovp(struct mount *mp, struct fid *fhp, int flags, in tmpfs_fhtovp() argument 593 if (fhp->fid_len != sizeof(*tfd)) in tmpfs_fhtovp() 596 tfd = (struct tmpfs_fid_data *)fhp; in tmpfs_fhtovp()
|
/freebsd/lib/libsys/ |
H A D | _libsys.h | 568 int __sys_lgetfh(const char * fname, struct fhandle * fhp); 569 int __sys_getfh(const char * fname, struct fhandle * fhp); 841 int __sys_getfhat(int fd, char * path, struct fhandle * fhp, int flags); 842 int __sys_fhlink(struct fhandle * fhp, const char * to); 843 int __sys_fhlinkat(struct fhandle * fhp, int tofd, const char * to); 844 int __sys_fhreadlink(struct fhandle * fhp, char * buf, size_t bufsize);
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_vfsops.c | 266 fuse_vfsop_fhtovp(struct mount *mp, struct fid *fhp, int flags, in fuse_vfsop_fhtovp() argument 269 struct fuse_fid *ffhp = (struct fuse_fid *)fhp; in fuse_vfsop_fhtovp()
|
/freebsd/sys/fs/udf/ |
H A D | udf_vfsops.c | 727 udf_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp) in udf_vget() 735 ifhp = (struct ifid *)fhp; in udf_vget() 738 udf_fhtovp(struct mount * mp,struct fid * fhp,int flags,struct vnode ** vpp) udf_fhtovp() argument
|
/freebsd/sys/nlm/ |
H A D | nlm_prot_impl.c | 1744 nlm_convert_to_fhandle_t(fhandle_t *fhp, struct netobj *p) in nlm_convert_to_fhandle_t() argument 1746 memcpy(fhp, p->n_bytes, sizeof(fhandle_t)); in nlm_convert_to_fhandle_t() 1757 fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode) in nlm_get_vfs_state() argument 1765 vs->vs_mp = vfs_getvfs(&fhp->fh_fsid); in nlm_get_vfs_state() 1785 error = VFS_FHTOVP(vs->vs_mp, &fhp->fh_fid, LK_EXCLUSIVE, &vs->vs_vp); in nlm_get_vfs_state()
|
/freebsd/stand/libsa/ |
H A D | nfs.c | 182 nfs_getrootfh(struct iodesc *d, char *path, uint32_t *fhlenp, u_char *fhp) in nfs_getrootfh() argument 234 bcopy(repl->fh, fhp, *fhlenp); in nfs_getrootfh()
|
/freebsd/sys/fs/cd9660/ |
H A D | cd9660_vfsops.c | 605 cd9660_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp) in cd9660_fhtovp() argument 612 memcpy(&ifh, fhp, sizeof(ifh)); in cd9660_fhtovp()
|