Home
last modified time | relevance | path

Searched refs:fhp (Results 1 – 25 of 43) sorted by relevance

12

/freebsd/contrib/tcpdump/
H A Dparsenfsfh.c90 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 Dt_vfsops.c80 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 Dnfs.cc75 fhandle_t fhp; in TEST_F() local
105 ASSERT_EQ(0, getfh(FULLPATH, &fhp)) << strerror(errno); in TEST_F()
106 ASSERT_EQ(-1, fhstat(&fhp, &sb)); in TEST_F()
115 fhandle_t fhp; in TEST_F() local
145 ASSERT_EQ(0, getfh(FULLPATH, &fhp)) << strerror(errno); in TEST_F()
146 ASSERT_EQ(0, fhstat(&fhp, &sb)) << strerror(errno); in TEST_F()
156 fhandle_t fhp; in TEST_F() local
177 ASSERT_EQ(0, getfh(FULLPATH, &fhp)) << strerror(errno); in TEST_F()
178 ASSERT_EQ(-1, fhstat(&fhp, &sb)); in TEST_F()
187 fhandle_t fhp; in TEST_F() local
[all …]
H A Dlast_local_modify.cc382 fhandle_t fhp; in TEST_P() local
481 ASSERT_EQ(0, getfh(FULLPATH, &fhp)) << strerror(errno); in TEST_P()
504 ASSERT_EQ(0, fhstat(&fhp, &sb)) << strerror(errno); in TEST_P()
/freebsd/sys/netinet/
H A Din_fib_dxr.c344 struct heap_entry *fhp = &da->heap[0]; in initheap() local
356 rt_get_inet_prefix_plen(rt, &addr, &fhp->preflen, &scopeid); in initheap()
357 fhp->start = ntohl(addr.s_addr); in initheap()
358 fhp->end = fhp->start; in initheap()
359 if (fhp->preflen < 32) in initheap()
360 fhp->end |= (0xffffffffU >> fhp->preflen); in initheap()
361 fhp->nexthop = fib_get_nhop_idx(da->fd, rnd.rnd_nhop); in initheap()
363 fhp->preflen = fhp->nexthop = fhp->start = 0; in initheap()
364 fhp->end = 0xffffffffU; in initheap()
665 struct heap_entry *fhp; in heap_inject() local
[all …]
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/
H A Dnetbsd_syscall_hooks.h828 #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 Dnfs_clnode.c95 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 Dnfs_clstate.c351 struct nfsclopen **nopp, u_int8_t *own, u_int8_t *fhp, int fhlen, in nfscl_newopen() argument
386 if (fhp != NULL) { in nfscl_newopen()
390 !NFSBCMP(op->nfso_fh, fhp, fhlen)) in nfscl_newopen()
399 NFSBCOPY(fhp, nop->nfso_fh, fhlen); in nfscl_newopen()
414 LIST_INSERT_HEAD(NFSCLOPENHASH(clp, fhp, fhlen), in nfscl_newopen()
533 nfscl_finddeleg(struct nfsclclient *clp, u_int8_t *fhp, int fhlen) in nfscl_finddeleg() argument
537 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, fhp, fhlen), nfsdl_hash) { in nfscl_finddeleg()
539 !NFSBCMP(dp->nfsdl_fh, fhp, fhlen)) in nfscl_finddeleg()
4228 nfscl_localconflict(struct nfsclclient *clp, u_int8_t *fhp, int fhlen, in nfscl_localconflict() argument
4240 LIST_FOREACH(op, NFSCLOPENHASH(clp, fhp, fhlen), nfso_hash) { in nfscl_localconflict()
[all …]
H A Dnfs_clrpcops.c120 struct nfsfh *fhp; member
1271 nfsrpc_getattrnovp(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, int syscred, in nfsrpc_getattrnovp() argument
1279 nfscl_reqstart(nd, NFSPROC_GETATTR, nmp, fhp, fhlen, NULL, NULL, 0, 0, in nfsrpc_getattrnovp()
3288 struct nfsfh *fhp; in nfsrpc_mkdir() local
3295 fhp = VTONFS(dvp)->n_fhp; in nfsrpc_mkdir()
3313 (void)nfsm_fhtom(nmp, nd, fhp->nfh_fh, fhp->nfh_len, 0); in nfsrpc_mkdir()
5245 u_char *cp, *cp2, *fhp; in nfsrpc_getdirpath() local
5297 fhp = malloc(len + 1, M_TEMP, M_WAITOK); in nfsrpc_getdirpath()
5298 nd->nd_repstat = nfsrv_mtostr(nd, fhp, len); in nfsrpc_getdirpath()
5302 NFSBCOPY(fhp, nmp->nm_fh, len); in nfsrpc_getdirpath()
[all …]
H A Dnfs_clport.c319 nfscl_ngetreopen(struct mount *mntp, u_int8_t *fhp, int fhsize, in nfscl_ngetreopen() argument
333 bcopy(fhp, &nfhp->nfh_fh[0], fhsize); in nfscl_ngetreopen()
336 hash = fnv_32_buf(fhp, fhsize, FNV1_32_INIT); in nfscl_ngetreopen()
/freebsd/contrib/smbfs/lib/smb/
H A Dprint.c57 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 Drepquota.c304 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/sys/fs/nfsserver/
H A Dnfs_nfsdport.c585 nfsvno_getfh(struct vnode *vp, fhandle_t *fhp, struct thread *p) in nfsvno_getfh() argument
589 NFSBZERO((caddr_t)fhp, sizeof(fhandle_t)); in nfsvno_getfh()
590 fhp->fh_fsid = vp->v_mount->mnt_stat.f_fsid; in nfsvno_getfh()
591 error = VOP_VPTOFH(vp, &fhp->fh_fid); in nfsvno_getfh()
2780 struct nfsvattr *nvap, fhandle_t *fhp, int rderror, nfsattrbit_t *attrbitp, in nfsvno_fillattr() argument
2802 error = nfsv4_fillattr(nd, mp, vp, NULL, &nvap->na_vattr, fhp, rderror, in nfsvno_fillattr()
4255 nfsvno_fhtovp(struct mount *mp, fhandle_t *fhp, struct sockaddr *nam, in nfsvno_fhtovp() argument
4263 error = VFS_FHTOVP(mp, &fhp->fh_fid, lktype, vpp); in nfsvno_fhtovp()
4312 fhandle_t *fhp; in nfsd_fhtovp() local
4318 fhp = (fhandle_t *)nfp->nfsrvfh_data; in nfsd_fhtovp()
[all …]
H A Dnfs_nfsdstate.c174 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, uint64_t stripesiz, int stripecnt, fhandle_t *fhp,
242 static int nfsrv_dontlayout(fhandle_t *fhp);
243 static int nfsrv_createdsfile(vnode_t vp, fhandle_t *fhp, struct pnfsdsfile *pf,
3752 fhandle_t *fhp = NULL; in nfsrv_getlockfh() local
3761 fhp = &new_lfp->lf_fh; in nfsrv_getlockfh()
3763 fhp = nfhp; in nfsrv_getlockfh()
[all …]
H A Dnfs_nfsdserv.c118 struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp,
124 struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp,
720 vnode_t dp, vnode_t *vpp, fhandle_t *fhp, struct nfsexstuff *exp) in nfsrvd_lookup() argument
791 nd->nd_repstat = nfsvno_getfh(vp, fhp, p); in nfsrvd_lookup()
817 (void)nfsm_fhtom(NULL, nd, (u_int8_t *)fhp, 0, 0); in nfsrvd_lookup()
820 (void)nfsm_fhtom(NULL, nd, (u_int8_t *)fhp, 0, 0); in nfsrvd_lookup()
1475 vnode_t dp, vnode_t *vpp, fhandle_t *fhp, struct nfsexstuff *exp) in nfsrvd_mknod() argument
1633 nfsrvd_mkdirsub(nd, &named, &nva, fhp, vpp, dirp, in nfsrvd_mknod()
1642 nfsrvd_symlinksub(nd, &named, &nva, fhp, vpp, dirp, in nfsrvd_mknod()
1662 nd->nd_repstat = nfsvno_getfh(vp, fhp, p); in nfsrvd_mknod()
[all …]
H A Dnfs_nfsdsubs.c1473 nfsrv_mtofh(struct nfsrv_descript *nd, struct nfsrvfh *fhp) in nfsrv_mtofh() argument
1532 NFSBCOPY(tl, (caddr_t)fhp->nfsrvfh_data, copylen); in nfsrv_mtofh()
1534 fhp->nfsrvfh_len = namedlen; in nfsrv_mtofh()
1536 fhp->nfsrvfh_len = copylen; in nfsrv_mtofh()
/freebsd/tools/test/stress2/misc/
H A Dsyzkaller92.sh115 // fhp: nil
118 syscall(SYS_freebsd11_fhstatfs, /*fhp=*/0ul, /*buf=*/0ul);
/freebsd/sbin/quotacheck/
H A Dquotacheck.c539 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 Dvfs_syscalls.c103 enum uio_seg pathseg, fhandle_t *fhp);
4614 fhandle_t *fhp; member
4622 UIO_USERSPACE, uap->fhp, UIO_USERSPACE)); in sys_lgetfh()
4628 fhandle_t *fhp; member
4636 uap->fhp, UIO_USERSPACE)); in sys_getfh()
4650 fhandle_t *fhp; member
4659 uap->fhp, UIO_USERSPACE)); in sys_getfhat()
4664 enum uio_seg pathseg, fhandle_t *fhp, enum uio_seg fhseg) in kern_getfhat() argument
4690 error = copyout(&fh, fhp, sizeof (fh)); in kern_getfhat()
4692 memcpy(fhp, &fh, sizeof(fh)); in kern_getfhat()
[all …]
/freebsd/sys/fs/tmpfs/
H A Dtmpfs_vfsops.c609 tmpfs_fhtovp(struct mount *mp, struct fid *fhp, int flags, in tmpfs_fhtovp() argument
617 if (fhp->fid_len != sizeof(*tfd)) in tmpfs_fhtovp()
620 tfd = (struct tmpfs_fid_data *)fhp; in tmpfs_fhtovp()
/freebsd/lib/libsys/
H A D_libsys.h578 int __sys_lgetfh(const char * fname, struct fhandle * fhp);
579 int __sys_getfh(const char * fname, struct fhandle * fhp);
851 int __sys_getfhat(int fd, const char * path, struct fhandle * fhp, int flags);
852 int __sys_fhlink(struct fhandle * fhp, const char * to);
853 int __sys_fhlinkat(struct fhandle * fhp, int tofd, const char * to);
854 int __sys_fhreadlink(struct fhandle * fhp, char * buf, size_t bufsize);
/freebsd/sys/fs/fuse/
H A Dfuse_vfsops.c268 fuse_vfsop_fhtovp(struct mount *mp, struct fid *fhp, int flags, in fuse_vfsop_fhtovp() argument
271 struct fuse_fid *ffhp = (struct fuse_fid *)fhp; in fuse_vfsop_fhtovp()
/freebsd/sys/fs/udf/
H A Dudf_vfsops.c728 udf_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp) in udf_fhtovp() argument
736 ifhp = (struct ifid *)fhp; in udf_fhtovp()
/freebsd/sys/nlm/
H A Dnlm_prot_impl.c1744 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/sys/fs/cd9660/
H A Dcd9660_vfsops.c605 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()

12