| /freebsd-14.2/contrib/tcpdump/ |
| H A D | parsenfsfh.c | 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() 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() 193 if ((GET_U_1(fhp + 8) == 12) && (GET_U_1(fhp + 9) == 0)) { in Parse_fh() 195 } else if ((GET_U_1(fhp + 8) == 0) && (GET_U_1(fhp + 9) == 10)) { in Parse_fh() 197 if ((GET_U_1(fhp + 7) == 0) && (GET_U_1(fhp + 6) == 0) && in Parse_fh() [all …]
|
| /freebsd-14.2/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() 167 void *fhp; in tfhinval() local 184 fhp = malloc(fhsize); in tfhinval() 185 tests_makegarbage(fhp, fhsize); in tfhinval() [all …]
|
| /freebsd-14.2/tests/sys/fs/fusefs/ |
| H A D | nfs.cc | 75 fhandle_t fhp; in TEST_F() local 104 ASSERT_EQ(-1, fhstat(&fhp, &sb)); in TEST_F() 113 fhandle_t fhp; in TEST_F() local 152 fhandle_t fhp; in TEST_F() local 178 fhandle_t fhp; in TEST_F() local 224 fhandle_t fhp; in TEST_F() local 247 fhandle_t fhp; in TEST_F() local 260 ASSERT_NE(0, getfh(FULLPATH, &fhp)); in TEST_F() 269 fhandle_t fhp; in TEST_F() local 298 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-14.2/sys/netinet/ |
| H A D | in_fib_dxr.c | 359 fhp->end = fhp->start; in initheap() 360 if (fhp->preflen < 32) in initheap() 361 fhp->end |= (0xffffffffU >> fhp->preflen); in initheap() 364 fhp->preflen = fhp->nexthop = fhp->start = 0; in initheap() 680 fhp->start = start; in heap_inject() 681 fhp->end = end; in heap_inject() 682 fhp->nexthop = nh; in heap_inject() 719 fhp--; in dxr_walk() 723 if (fhp->end > oend && fhp->nexthop != fp->nexthop) { in dxr_walk() 785 fhp--; in update_chunk() [all …]
|
| /freebsd-14.2/sys/fs/nfsclient/ |
| H A D | nfs_clnode.c | 96 ncl_nget(struct mount *mntp, u_int8_t *fhp, int fhsize, struct nfsnode **npp, in ncl_nget() argument 111 hash = fnv_32_buf(fhp, fhsize, FNV1_32_INIT); in ncl_nget() 115 bcopy(fhp, &nfhp->nfh_fh[0], fhsize); in ncl_nget() 158 !bcmp(fhp, nmp->nm_fh, fhsize))) { in ncl_nget() 168 bcopy(fhp, np->n_fhp->nfh_fh, fhsize); in ncl_nget()
|
| H A D | nfs_clstate.c | 387 if (fhp != NULL) { in nfscl_newopen() 391 !NFSBCMP(op->nfso_fh, fhp, fhlen)) in nfscl_newopen() 400 NFSBCOPY(fhp, nop->nfso_fh, fhlen); in nfscl_newopen() 511 !NFSBCMP(dp->nfsdl_fh, fhp, fhlen)) in nfscl_finddeleg() 4125 !NFSBCMP(op->nfso_fh, fhp, fhlen)) { in nfscl_localconflict() 4494 error = nfscl_tryopen(nmp, vp, fhp, fhlen, fhp, fhlen, mode, op, in nfsrpc_reopen() 5247 lyp = nfscl_findlayout(clp, fhp, fhlen); in nfscl_layout() 5269 NFSBCOPY(fhp, lyp->nfsly_fh, fhlen); in nfscl_layout() 5331 lyp = nfscl_findlayout(clp, fhp, fhlen); in nfscl_getlayout() 5378 lyp = nfscl_findlayout(clp, fhp, fhlen); in nfscl_retoncloselayout() [all …]
|
| H A D | nfs_clrpcops.c | 120 struct nfsfh *fhp; member 3225 struct nfsfh *fhp; in nfsrpc_mkdir() local 3250 (void)nfsm_fhtom(nmp, nd, fhp->nfh_fh, fhp->nfh_len, 0); in nfsrpc_mkdir() 5196 free(fhp, M_TEMP); in nfsrpc_getdirpath() 6672 struct nfsfh *fhp; in nfscl_doflayoutio() local 6712 fhp = np->n_fhp; in nfscl_doflayoutio() 6777 struct nfsfh *fhp; in nfscl_dofflayoutio() local 6909 xfer, fhp, m, in nfscl_dofflayoutio() 7306 drpc->fhp = fhp; in nfsio_writedsmir() 7492 drpc->fhp = fhp; in nfsio_commitds() [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-14.2/contrib/llvm-project/compiler-rt/include/sanitizer/ |
| H A D | netbsd_syscall_hooks.h | 830 (long long)(fhp)) 833 (long long)(fhp)) 1890 (long long)(fhp), (long long)(buf), (long long)(flags)) 1893 res, (long long)(fhp), (long long)(buf), (long long)(flags)) 2170 (long long)(fhp), (long long)(fh_size), (long long)(flags)) 2185 (long long)(fhp), (long long)(fh_size), (long long)(sb)) 2517 (long long)(fhp), (long long)(fh_size), (long long)(sb)) 3472 long long fhp); 3475 long long fhp); 4030 void __sanitizer_syscall_pre_impl_compat_30_fhopen(long long fhp, [all …]
|
| /freebsd-14.2/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-14.2/sys/fs/nfsserver/ |
| H A D | nfs_nfsdport.c | 3412 fhandle_t *fhp; in nfsd_fhtovp() local 5593 NFSBCOPY(fhp, &tdrpc->fh, sizeof(*fhp)); in nfsrv_writedsrpc() 5617 fhp++; in nfsrv_writedsrpc() 5754 NFSBCOPY(fhp, &tdrpc->fh, sizeof(*fhp)); in nfsrv_allocatedsrpc() 5777 fhp++; in nfsrv_allocatedsrpc() 5935 NFSBCOPY(fhp, &tdrpc->fh, sizeof(*fhp)); in nfsrv_deallocatedsrpc() 5958 fhp++; in nfsrv_deallocatedsrpc() 6120 NFSBCOPY(fhp, &tdrpc->fh, sizeof(*fhp)); in nfsrv_setattrdsrpc() 6142 fhp++; in nfsrv_setattrdsrpc() 6268 NFSBCOPY(fhp, &tdrpc->fh, sizeof(*fhp)); in nfsrv_setacldsrpc() [all …]
|
| H A D | nfs_nfsdstate.c | 3742 fhandle_t *fhp = NULL; in nfsrv_getlockfh() local 3753 fhp = nfhp; in nfsrv_getlockfh() 3784 fhp = nfhp; in nfsrv_getlockfile() 6957 NFSBCOPY(fhp, &lyp->lay_fh, sizeof(*fhp)); in nfsrv_filelayout() 7006 NFSBCOPY(fhp, &lyp->lay_fh, sizeof(*fhp)); in nfsrv_flexlayout() 7404 if (NFSBCMP(&lyp->lay_fh, fhp, sizeof(*fhp)) == 0 && in nfsrv_findlayout() 7426 fhandle_t *fhp; in nfsrv_addlayout() local 7432 fhp = &lyp->lay_fh; in nfsrv_addlayout() 7452 if (NFSBCMP(&nlyp->lay_fh, fhp, sizeof(*fhp)) == 0 && in nfsrv_addlayout() 7676 if (NFSBCMP(&lyp->lay_fh, fhp, sizeof(*fhp)) == 0) in nfsrv_freefilelayouts() [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, 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() 1458 nfsrvd_mkdirsub(nd, &named, &nva, fhp, vpp, dirp, in nfsrvd_mknod() 1481 nd->nd_repstat = nfsvno_getfh(vp, fhp, p); in nfsrvd_mknod() 1496 (void)nfsm_fhtom(NULL, nd, (u_int8_t *)fhp, 0, 1); in nfsrvd_mknod() 1945 nfsrvd_symlinksub(nd, &named, &nva, fhp, vpp, dirp, in nfsrvd_symlink() 2086 (void)nfsm_fhtom(NULL, nd, (u_int8_t *)fhp, 0, 0); in nfsrvd_mkdir() [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-14.2/usr.sbin/repquota/ |
| H A D | repquota.c | 316 struct fileusage *fup, **fhp; in addid() local 327 fhp = &fuhead[type][id & (FUHASH - 1)]; in addid() 328 fup->fu_next = *fhp; in addid() 329 *fhp = fup; in addid()
|
| /freebsd-14.2/sbin/quotacheck/ |
| H A D | quotacheck.c | 555 struct fileusage *fup, **fhp; in addid() local 566 fhp = &fuhead[type][id & (FUHASH - 1)]; in addid() 567 fup->fu_next = *fhp; in addid() 568 *fhp = fup; in addid()
|
| /freebsd-14.2/sys/fs/tmpfs/ |
| H A D | tmpfs_vfsops.c | 586 tmpfs_fhtovp(struct mount *mp, struct fid *fhp, int flags, in tmpfs_fhtovp() argument 594 if (fhp->fid_len != sizeof(tfd)) in tmpfs_fhtovp() 601 memcpy(&tfd, fhp->fid_data, fhp->fid_len); in tmpfs_fhtovp()
|
| H A D | tmpfs_vnops.c | 1689 struct fid *fhp; in tmpfs_vptofh() local 1692 fhp = ap->a_fhp; in tmpfs_vptofh() 1693 fhp->fid_len = sizeof(tfd); in tmpfs_vptofh() 1701 memcpy(fhp->fid_data, &tfd, fhp->fid_len); in tmpfs_vptofh()
|
| /freebsd-14.2/sys/kern/ |
| H A D | vfs_syscalls.c | 4395 fhandle_t *fhp; member 4409 fhandle_t *fhp; member 4417 uap->fhp, UIO_USERSPACE)); in sys_getfh() 4431 fhandle_t *fhp; member 4440 uap->fhp, UIO_USERSPACE)); in sys_getfhat() 4480 fhandle_t *fhp; member 4493 fhandle_t *fhp; member 4536 fhandle_t *fhp; member 4592 struct fhandle fhp; in kern_fhopen() local 4605 error = copyin(u_fhp, &fhp, sizeof(fhp)); in kern_fhopen() [all …]
|
| /freebsd-14.2/sys/fs/fuse/ |
| H A D | fuse_vfsops.c | 267 fuse_vfsop_fhtovp(struct mount *mp, struct fid *fhp, int flags, in fuse_vfsop_fhtovp() argument 270 struct fuse_fid *ffhp = (struct fuse_fid *)fhp; in fuse_vfsop_fhtovp()
|
| /freebsd-14.2/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_fhtovp() argument 735 ifhp = (struct ifid *)fhp; in udf_fhtovp()
|
| /freebsd-14.2/sys/nlm/ |
| H A D | nlm_prot_impl.c | 1716 nlm_convert_to_fhandle_t(fhandle_t *fhp, struct netobj *p) in nlm_convert_to_fhandle_t() argument 1718 memcpy(fhp, p->n_bytes, sizeof(fhandle_t)); in nlm_convert_to_fhandle_t() 1729 fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode) in nlm_get_vfs_state() argument 1737 vs->vs_mp = vfs_getvfs(&fhp->fh_fsid); in nlm_get_vfs_state() 1757 error = VFS_FHTOVP(vs->vs_mp, &fhp->fh_fid, LK_EXCLUSIVE, &vs->vs_vp); in nlm_get_vfs_state()
|
| /freebsd-14.2/sys/fs/cd9660/ |
| H A D | cd9660_vfsops.c | 608 cd9660_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp) in cd9660_fhtovp() argument 615 memcpy(&ifh, fhp, sizeof(ifh)); in cd9660_fhtovp()
|
| /freebsd-14.2/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()
|