Home
last modified time | relevance | path

Searched refs:fhp (Results 1 – 25 of 42) 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/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.c349 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()
4177 nfscl_localconflict(struct nfsclclient *clp, u_int8_t *fhp, int fhlen, in nfscl_localconflict() argument
4189 LIST_FOREACH(op, NFSCLOPENHASH(clp, fhp, fhlen), nfso_hash) { in nfscl_localconflict()
[all …]
H A Dnfs_clrpcops.c120 struct nfsfh *fhp; member
1333 nfsrpc_getattrnovp(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, int syscred, in nfsrpc_getattrnovp() argument
1341 nfscl_reqstart(nd, NFSPROC_GETATTR, nmp, fhp, fhlen, NULL, NULL, 0, 0, in nfsrpc_getattrnovp()
3350 struct nfsfh *fhp; in nfsrpc_mkdir() local
3357 fhp = VTONFS(dvp)->n_fhp; in nfsrpc_mkdir()
3375 (void)nfsm_fhtom(nmp, nd, fhp->nfh_fh, fhp->nfh_len, 0); in nfsrpc_mkdir()
5307 u_char *cp, *cp2, *fhp; in nfsrpc_getdirpath() local
5359 fhp = malloc(len + 1, M_TEMP, M_WAITOK); in nfsrpc_getdirpath()
5360 nd->nd_repstat = nfsrv_mtostr(nd, fhp, len); in nfsrpc_getdirpath()
5364 NFSBCOPY(fhp, nmp->nm_fh, len); in nfsrpc_getdirpath()
[all …]
H A Dnfs_clport.c326 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/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/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/sys/fs/nfsserver/
H A Dnfs_nfsdport.c479 nfsvno_getfh(struct vnode *vp, fhandle_t *fhp, struct thread *p) in nfsvno_getfh() argument
483 NFSBZERO((caddr_t)fhp, sizeof(fhandle_t)); in nfsvno_getfh()
484 fhp->fh_fsid = vp->v_mount->mnt_stat.f_fsid; in nfsvno_getfh()
485 error = VOP_VPTOFH(vp, &fhp->fh_fid); in nfsvno_getfh()
2154 struct nfsvattr *nvap, fhandle_t *fhp, int rderror, nfsattrbit_t *attrbitp, in nfsvno_fillattr() argument
2176 error = nfsv4_fillattr(nd, mp, vp, NULL, &nvap->na_vattr, fhp, rderror, in nfsvno_fillattr()
3625 nfsvno_fhtovp(struct mount *mp, fhandle_t *fhp, struct sockaddr *nam, in nfsvno_fhtovp() argument
3633 error = VFS_FHTOVP(mp, &fhp->fh_fid, lktype, vpp); in nfsvno_fhtovp()
3682 fhandle_t *fhp; in nfsd_fhtovp() local
3688 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, 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,
3761 fhandle_t *fhp = NULL; in nfsrv_getlockfh() local
3770 fhp = &new_lfp->lf_fh; in nfsrv_getlockfh()
3772 fhp in nfsrv_getlockfh()
3791 fhandle_t *fhp = NULL, *tfhp; nfsrv_getlockfile() local
4456 nfsrv_docallback(struct nfsclient * clp,int procnum,nfsv4stateid_t * stateidp,int trunc,fhandle_t * fhp,struct nfsvattr * nap,nfsattrbit_t * attrbitp,int laytype,NFSPROC_T * p) nfsrv_docallback() argument
6964 nfsrv_filelayout(struct nfsrv_descript * nd,int iomode,fhandle_t * fhp,fhandle_t * dsfhp,char * devid,fsid_t fs) nfsrv_filelayout() argument
7013 nfsrv_flexlayout(struct nfsrv_descript * nd,int iomode,int mirrorcnt,fhandle_t * fhp,fhandle_t * dsfhp,char * devid,fsid_t fs) nfsrv_flexlayout() argument
7191 nfsrv_recalllayout(nfsquad_t clid,nfsv4stateid_t * stateidp,fhandle_t * fhp,struct nfslayout * lyp,int changed,int laytype,NFSPROC_T * p) nfsrv_recalllayout() argument
7414 nfsrv_findlayout(nfsquad_t * clientidp,fhandle_t * fhp,int laytype,NFSPROC_T * p,struct nfslayout ** lypp) nfsrv_findlayout() argument
7447 fhandle_t *fhp; nfsrv_addlayout() local
7689 nfsrv_freefilelayouts(fhandle_t * fhp) nfsrv_freefilelayouts() argument
8288 nfsrv_dontlayout(fhandle_t * fhp) nfsrv_dontlayout() argument
8609 nfsrv_createdsfile(vnode_t vp,fhandle_t * fhp,struct pnfsdsfile * pf,vnode_t dvp,struct nfsdevice * ds,struct ucred * cred,NFSPROC_T * p,vnode_t * tvpp) nfsrv_createdsfile() argument
9037 nfsrv_removedeleg(fhandle_t * fhp,struct nfsrv_descript * nd,NFSPROC_T * p) nfsrv_removedeleg() argument
[all...]
H A Dnfs_nfsdserv.c117 struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp,
123 struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp,
690 vnode_t dp, vnode_t *vpp, fhandle_t *fhp, struct nfsexstuff *exp) in nfsrvd_lookup() argument
761 nd->nd_repstat = nfsvno_getfh(vp, fhp, p); in nfsrvd_lookup()
787 (void)nfsm_fhtom(NULL, nd, (u_int8_t *)fhp, 0, 0); in nfsrvd_lookup()
790 (void)nfsm_fhtom(NULL, nd, (u_int8_t *)fhp, 0, 0); in nfsrvd_lookup()
1429 vnode_t dp, vnode_t *vpp, fhandle_t *fhp, struct nfsexstuff *exp) in nfsrvd_mknod() argument
1587 nfsrvd_mkdirsub(nd, &named, &nva, fhp, vpp, dirp, in nfsrvd_mknod()
1596 nfsrvd_symlinksub(nd, &named, &nva, fhp, vpp, dirp, in nfsrvd_mknod()
1612 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/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/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);
4520 fhandle_t *fhp; member
4528 UIO_USERSPACE, uap->fhp, UIO_USERSPACE)); in sys_lgetfh()
4534 fhandle_t *fhp; member
4542 uap->fhp, UIO_USERSPACE)); in sys_getfh()
4556 fhandle_t *fhp; member
4565 uap->fhp, UIO_USERSPACE)); in sys_getfhat()
4570 enum uio_seg pathseg, fhandle_t *fhp, enum uio_seg fhseg) in kern_getfhat() argument
4596 error = copyout(&fh, fhp, sizeof (fh)); in kern_getfhat()
4598 memcpy(fhp, &fh, sizeof(fh)); in kern_getfhat()
[all …]
/freebsd/sys/fs/tmpfs/
H A Dtmpfs_vfsops.c585 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.h575 int __sys_lgetfh(const char * fname, struct fhandle * fhp);
576 int __sys_getfh(const char * fname, struct fhandle * fhp);
848 int __sys_getfhat(int fd, char * path, struct fhandle * fhp, int flags);
849 int __sys_fhlink(struct fhandle * fhp, const char * to);
850 int __sys_fhlinkat(struct fhandle * fhp, int tofd, const char * to);
851 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()
/freebsd/stand/libsa/
H A Dnfs.c183 nfs_getrootfh(struct iodesc *d, char *path, uint32_t *fhlenp, u_char *fhp) in nfs_getrootfh() argument
235 bcopy(repl->fh, fhp, *fhlenp); in nfs_getrootfh()

12