/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | files_common.c | 357 _nss_files_hash_destroy(files_hash_t *fhp) in _nss_files_hash_destroy() argument 359 free(fhp->fh_table); in _nss_files_hash_destroy() 360 fhp->fh_table = NULL; in _nss_files_hash_destroy() 361 free(fhp->fh_line); in _nss_files_hash_destroy() 362 fhp->fh_line = NULL; in _nss_files_hash_destroy() 363 free(fhp->fh_file_start); in _nss_files_hash_destroy() 364 fhp->fh_file_start = NULL; in _nss_files_hash_destroy() 388 int netdb, files_hash_t *fhp, int hashop, files_XY_check_func check) in _nss_files_XY_hash() argument 410 mutex_lock(&fhp->fh_lock); 421 if (fhp->fh_table == NULL || --retries == 0) [all …]
|
H A D | files_common.h | 103 files_hash_t *fhp); 121 files_hash_t *fhp,
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_smb.c | 74 smb_fh_t *fhp, in smbfs_smb_getfattr() argument 82 error = smbfs_smb2_qfileinfo(ssp, &fhp->fh_fid2, fap, scrp); in smbfs_smb_getfattr() 84 error = smbfs_smb1_trans2_query(np, fhp->fh_fid1, fap, scrp); in smbfs_smb_getfattr() 191 smbfs_smb_setdisp(struct smb_share *ssp, smb_fh_t *fhp, in smbfs_smb_setdisp() argument 197 err = smbfs_smb2_setdisp(ssp, &fhp->fh_fid2, disp, scrp); in smbfs_smb_setdisp() 199 err = smbfs_smb1_setdisp(ssp, fhp->fh_fid1, disp, scrp); in smbfs_smb_setdisp() 206 smbfs_smb_setfsize(struct smb_share *ssp, smb_fh_t *fhp, in smbfs_smb_setfsize() argument 212 error = smbfs_smb2_seteof(ssp, &fhp->fh_fid2, size, scrp); in smbfs_smb_setfsize() 214 error = smbfs_smb1_seteof(ssp, fhp->fh_fid1, size, scrp); in smbfs_smb_setfsize() 228 smb_fh_t *fhp, in smbfs_smb_setfattr() argument [all …]
|
H A D | smbfs_smb2.c | 524 smb_fh_t *fhp = ctx->f_fhp; in smbfs_smb2_qdir() local 571 mb_put_uint64le(mbp, fhp->fh_fid2.fid_persistent); in smbfs_smb2_qdir() 572 mb_put_uint64le(mbp, fhp->fh_fid2.fid_volatile); in smbfs_smb2_qdir() 684 smb_fh_t *fhp = NULL; in smbfs_smb2_findopen() local 701 error = smb_fh_create(ctx->f_ssp, &fhp); in smbfs_smb2_findopen() 711 ctx->f_scred, fhp, in smbfs_smb2_findopen() 716 fhp->fh_rights = rights; in smbfs_smb2_findopen() 717 smb_fh_opened(fhp); in smbfs_smb2_findopen() 718 ctx->f_fhp = fhp; in smbfs_smb2_findopen() 730 if (fhp != NULL) in smbfs_smb2_findopen() [all …]
|
H A D | smbfs_client.c | 404 smb_fh_t *fhp = NULL; in smbfs_getattr_otw() local 444 (fhp = np->n_fid) != NULL && in smbfs_getattr_otw() 445 (fhp->fh_vcgenid == ssp->ss_vcgenid)) { in smbfs_getattr_otw() 447 error = smbfs_smb_getfattr(np, fhp, fap, &scred); in smbfs_getattr_otw()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_xdr.c | 70 int32_t *fhp; in xdr_fhandle() local 77 fhp = (int32_t *)fh; in xdr_fhandle() 79 *fhp++ = *ptr++; in xdr_fhandle() 80 *fhp++ = *ptr++; in xdr_fhandle() 81 *fhp++ = *ptr++; in xdr_fhandle() 82 *fhp++ = *ptr++; in xdr_fhandle() 83 *fhp++ = *ptr++; in xdr_fhandle() 84 *fhp++ = *ptr++; in xdr_fhandle() 85 *fhp++ = *ptr++; in xdr_fhandle() 86 *fhp = *ptr; in xdr_fhandle() [all …]
|
H A D | nfs3_xdr.c | 158 xdr_inline_decode_nfs_fh3(uint32_t *ptr, nfs_fh3 *fhp, uint32_t fhsize) in xdr_inline_decode_nfs_fh3() argument 182 fhp->fh3_fsid.val[0] = *(uint32_t *)bp; in xdr_inline_decode_nfs_fh3() 184 fhp->fh3_fsid.val[1] = *(uint32_t *)bp; in xdr_inline_decode_nfs_fh3() 191 cp = (uchar_t *)&fhp->fh3_len; in xdr_inline_decode_nfs_fh3() 200 dsize = fhp->fh3_len < NFS_FHMAXDATA ? NFS_FHMAXDATA : fhp->fh3_len; in xdr_inline_decode_nfs_fh3() 207 bcopy(bp, fhp->fh3_data, dsize); in xdr_inline_decode_nfs_fh3() 213 cp = (uchar_t *)&fhp->fh3_xlen; in xdr_inline_decode_nfs_fh3() 218 dsize = fhp->fh3_xlen < NFS_FHMAXDATA ? NFS_FHMAXDATA : fhp->fh3_xlen; in xdr_inline_decode_nfs_fh3() 225 bcopy(bp, fhp->fh3_xdata, dsize); in xdr_inline_decode_nfs_fh3() 318 nfs_fh3 *fhp) in xdr_inline_encode_nfs_fh3() argument [all …]
|
H A D | nfs4_xdr.c | 353 xdr_inline_decode_nfs_fh4(uint32_t *ptr, nfs_fh4_fmt_t *fhp, uint32_t fhsize) in xdr_inline_decode_nfs_fh4() argument 377 fhp->fh4_fsid.val[0] = *(uint32_t *)bp; in xdr_inline_decode_nfs_fh4() 379 fhp->fh4_fsid.val[1] = *(uint32_t *)bp; in xdr_inline_decode_nfs_fh4() 386 cp = (uchar_t *)&fhp->fh4_len; in xdr_inline_decode_nfs_fh4() 395 dsize = fhp->fh4_len < NFS_FHMAXDATA ? NFS_FHMAXDATA : fhp->fh4_len; in xdr_inline_decode_nfs_fh4() 402 bcopy(bp, fhp->fh4_data, dsize); in xdr_inline_decode_nfs_fh4() 408 cp = (uchar_t *)&fhp->fh4_xlen; in xdr_inline_decode_nfs_fh4() 413 dsize = fhp->fh4_xlen < NFS_FHMAXDATA ? NFS_FHMAXDATA : fhp->fh4_xlen; in xdr_inline_decode_nfs_fh4() 420 bcopy(bp, fhp->fh4_xdata, dsize); in xdr_inline_decode_nfs_fh4() 437 fhp->fh4_flag = *(uint32_t *)bp; in xdr_inline_decode_nfs_fh4() [all …]
|
H A D | nfs_acl_vnops.c | 152 fi.fhp = (caddr_t)&args.fh; in acl_getacl2() 247 fi.fhp = (caddr_t)&args.fh; in acl_getattr2_otw() 317 fi.fhp = (caddr_t)&args.fh; in acl_access2() 432 fi.fhp = NULL; /* no need to update, filehandle not copied */ in acl_getxattrdir2() 532 fi.fhp = (caddr_t)&args.fh; in acl_getacl3() 634 fi.fhp = (caddr_t)&args.fh; in acl_getxattrdir3()
|
H A D | nfs_srv.c | 130 rfs_getattr(fhandle_t *fhp, struct nfsattrstat *ns, struct exportinfo *exi, in rfs_getattr() argument 137 vp = nfs_fhtovp(fhp, exi); in rfs_getattr() 165 rfs_getattr_getfh(fhandle_t *fhp) in rfs_getattr_getfh() argument 167 return (fhp); in rfs_getattr_getfh() 453 fhandle_t *fhp = da->da_fhandle; in rfs_lookup() local 485 dvp = nfs_fhtovp(fhp, exi); in rfs_lookup() 501 EQFID(&exi->exi_fid, (fid_t *)&fhp->fh_len)) { in rfs_lookup() 535 if (PUBLIC_FH2(fhp)) { in rfs_lookup() 613 rfs_readlink(fhandle_t *fhp, struct nfsrdlnres *rl, struct exportinfo *exi, in rfs_readlink() argument 625 vp = nfs_fhtovp(fhp, exi); in rfs_readlink() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_usr.c | 106 struct smb_fh *fhp; in smb_usr_xnp() local 114 if ((fhp = sdp->sd_fh) == NULL) in smb_usr_xnp() 116 ssp = FHTOSS(fhp); in smb_usr_xnp() 119 if (fhp->fh_vcgenid != ssp->ss_vcgenid) in smb_usr_xnp() 146 err = smb2_smb_ioctl(ssp, &fhp->fh_fid2, in smb_usr_xnp() 150 err = smb_t2_xnp(ssp, fhp->fh_fid1, in smb_usr_xnp() 212 struct smb_fh *fhp; in smb_usr_rw() local 220 if ((fhp = sdp->sd_fh) == NULL) in smb_usr_rw() 222 ssp = FHTOSS(fhp); in smb_usr_rw() 225 if (fhp->fh_vcgenid != ssp->ss_vcgenid) in smb_usr_rw() [all …]
|
H A D | smb_conn.c | 868 smb_fh_hold(struct smb_fh *fhp) in smb_fh_hold() argument 870 smb_co_hold(FHTOCP(fhp)); in smb_fh_hold() 874 smb_fh_rele(struct smb_fh *fhp) in smb_fh_rele() argument 876 smb_co_rele(FHTOCP(fhp)); in smb_fh_rele() 880 smb_fh_close(struct smb_fh *fhp) in smb_fh_close() argument 882 smb_co_kill(FHTOCP(fhp)); in smb_fh_close() 894 struct smb_fh *fhp = CPTOFH(cp); in smb_fh_gone() local 895 smb_share_t *ssp = FHTOSS(fhp); in smb_fh_gone() 898 if ((fhp->fh_flags & SMBFH_VALID) == 0) in smb_fh_gone() 905 if (fhp->fh_vcgenid != ssp->ss_vcgenid) in smb_fh_gone() [all …]
|
H A D | smb_conn.h | 372 #define SMB_FH_LOCK(fhp) mutex_enter(&(fhp)->fh_lock) argument 373 #define SMB_FH_UNLOCK(fhp) mutex_exit(&(fhp)->fh_lock) argument 376 #define FHTOCP(fhp) (&(fhp)->fh_co) argument 377 #define FHTOSS(fhp) CPTOSS(((fhp)->fh_co.co_parent)) argument 519 void smb_fh_opened(struct smb_fh *fhp); 520 void smb_fh_close(struct smb_fh *fhp); 521 void smb_fh_hold(struct smb_fh *fhp); 522 void smb_fh_rele(struct smb_fh *fhp);
|
H A D | smb_subr.h | 160 struct smb_cred *scrp, smb_fh_t *fhp, 163 int smb_smb_close(struct smb_share *ssp, smb_fh_t *fhp, 166 int smb_rwuio(smb_fh_t *fhp, uio_rw_t rw, 218 int smb_smb_readx(smb_fh_t *fhp, uint32_t *lenp, 220 int smb_smb_writex(smb_fh_t *fhp, uint32_t *lenp, 249 int smb2_smb_read(smb_fh_t *fhp, uint32_t *lenp, 251 int smb2_smb_write(smb_fh_t *fhp, uint32_t *lenp,
|
H A D | smb_dev.c | 536 struct smb_fh *fhp; in nsmb_close2() local 538 fhp = sdp->sd_fh; in nsmb_close2() 539 if (fhp != NULL) in nsmb_close2() 540 smb_fh_rele(fhp); in nsmb_close2()
|
H A D | smb2_smb.c | 1157 smb2_smb_read(smb_fh_t *fhp, uint32_t *lenp, in smb2_smb_read() argument 1160 struct smb_share *ssp = FHTOSS(fhp); in smb2_smb_read() 1184 mb_put_uint64le(mbp, fhp->fh_fid2.fid_persistent); in smb2_smb_read() 1185 mb_put_uint64le(mbp, fhp->fh_fid2.fid_volatile); in smb2_smb_read() 1263 smb2_smb_write(smb_fh_t *fhp, uint32_t *lenp, in smb2_smb_write() argument 1266 struct smb_share *ssp = FHTOSS(fhp); in smb2_smb_write() 1290 mb_put_uint64le(mbp, fhp->fh_fid2.fid_persistent); in smb2_smb_write() 1291 mb_put_uint64le(mbp, fhp->fh_fid2.fid_volatile); in smb2_smb_write()
|
H A D | smb_subrs.c | 1187 struct smb_cred *scrp, smb_fh_t *fhp, in smb_smb_ntcreate() argument 1195 impersonate, scrp, &fhp->fh_fid2, cr_act_p, fap); in smb_smb_ntcreate() 1199 &fhp->fh_fid1, cr_act_p, fap); in smb_smb_ntcreate() 1205 smb_smb_close(struct smb_share *ssp, smb_fh_t *fhp, in smb_smb_close() argument 1211 err = smb2_smb_close(ssp, &fhp->fh_fid2, scrp); in smb_smb_close() 1213 err = smb1_smb_close(ssp, fhp->fh_fid1, NULL, scrp); in smb_smb_close() 1233 smb_rwuio(smb_fh_t *fhp, uio_rw_t rw, in smb_rwuio() argument 1236 struct smb_share *ssp = FHTOSS(fhp); in smb_rwuio() 1245 if (fhp->fh_vcgenid != ssp->ss_vcgenid) in smb_rwuio() 1284 error = (*iofun)(fhp, &rlen, uiop, scred, timo); in smb_rwuio()
|
H A D | smb_smb.c | 1123 smb_smb_readx(smb_fh_t *fhp, uint32_t *lenp, in smb_smb_readx() argument 1126 struct smb_share *ssp = FHTOSS(fhp); in smb_smb_readx() 1148 mb_put_uint16le(mbp, fhp->fh_fid1); in smb_smb_readx() 1219 smb_smb_writex(smb_fh_t *fhp, uint32_t *lenp, in smb_smb_writex() argument 1222 struct smb_share *ssp = FHTOSS(fhp); in smb_smb_writex() 1244 mb_put_uint16le(mbp, fhp->fh_fid1); in smb_smb_writex()
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | nfssys.c | 56 nfs_getfh(char *path, int vers, int *lenp, char *fhp) in nfs_getfh() argument 63 nga.fhp = fhp; in nfs_getfh()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | firmload.c | 77 firmware_open(const char *drvname, const char *imgname, firmware_handle_t *fhp) in firmware_open() argument 83 if (drvname == NULL || imgname == NULL || fhp == NULL) in firmware_open() 104 *fhp = fh; in firmware_open()
|
/illumos-gate/usr/src/uts/common/klm/ |
H A D | nlm_client.c | 261 struct netobj *fhp, struct flk_callback *flcb, int vers) in nlm_frlock() argument 296 offset, fhp, vers); in nlm_frlock() 302 offset, fhp, flcb, vers, (cmd == F_SETLKW)); in nlm_frlock() 319 struct netobj *fhp, int vers) in nlm_frlock_getlk() argument 345 error = nlm_call_test(&flk0, hostp, fhp, vers); in nlm_frlock_getlk() 371 struct netobj *fhp, struct flk_callback *flcb, in nlm_frlock_setlk() argument 412 error = nlm_call_unlock(flkp, hostp, fhp, vers); in nlm_frlock_setlk() 440 error = nlm_call_lock(vp, flkp, hostp, fhp, flcb, vers, xflags); in nlm_frlock_setlk() 749 struct nlm_host *hostp, struct netobj *fhp, in nlm_call_lock() argument 762 nlm_init_lock(&args.alock, flp, fhp, &oh); in nlm_call_lock() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/nsmb/ |
H A D | nsmb.c | 253 const smb_fh_t *fhp = data; in smb_fh_cb() local 258 if (fhp->fh_fid2.fid_volatile != 0) { in smb_fh_cb() 260 (long long) fhp->fh_fid2.fid_volatile); in smb_fh_cb() 262 mdb_printf("\t0x%x\n", fhp->fh_fid1); in smb_fh_cb()
|
/illumos-gate/usr/src/uts/common/nfs/ |
H A D | nfssys.h | 97 char *fhp; member 105 caddr32_t fhp; member
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_util.c | 537 tlm_new_dir_info(struct fs_fhandle *fhp, char *dir, char *nm) in tlm_new_dir_info() argument 544 (void) memcpy(&fdip->fd_dir_fh, fhp, sizeof (fs_fhandle_t)); in tlm_new_dir_info()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quotacheck/ |
H A D | quotacheck.c | 673 struct fileusage *fup, **fhp; in adduid() local 683 fhp = &fuhead[uid % FUHASH]; in adduid() 684 fup->fu_next = *fhp; in adduid() 685 *fhp = fup; in adduid()
|