/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | files_common.c | 359 free(fhp->fh_table); in _nss_files_hash_destroy() 361 free(fhp->fh_line); in _nss_files_hash_destroy() 429 htab = &fhp->fh_table[hashop * fhp->fh_size]; 499 fhp->fh_file_end = fhp->fh_file_start + (off_t)st.st_size; 525 for (cp = fhp->fh_file_start; cp < fhp->fh_file_end; cp++) 539 if (fhp->fh_line == NULL || fhp->fh_table == NULL) 568 hp = &fhp->fh_table[ht * fhp->fh_size + line]; 585 htab = &fhp->fh_table[ht * fhp->fh_size]; 649 files_hash_t *fhp; 664 if (fhp != NULL) { [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 228 smb_fh_t *fhp, in smbfs_smb_setfattr() argument 361 *fhpp = fhp; in smbfs_smb_tmpopen() 378 scrp, fhp, in smbfs_smb_tmpopen() 385 *fhpp = fhp; in smbfs_smb_tmpopen() 386 fhp = NULL; in smbfs_smb_tmpopen() 389 if (fhp != NULL) in smbfs_smb_tmpopen() 435 *fhpp = fhp; in smbfs_smb_open() 436 fhp = NULL; in smbfs_smb_open() 494 *fhpp = fhp; in smbfs_smb_create() [all …]
|
H A D | smbfs_smb2.c | 684 smb_fh_t *fhp = NULL; in smbfs_smb2_findopen() local 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() 731 smb_fh_rele(fhp); in smbfs_smb2_findopen() 738 smb_fh_t *fhp = NULL; in smbfs_smb2_findclose() local 742 smb_fh_rele(fhp); in smbfs_smb2_findclose() 798 smb_fh_t *fhp = NULL; in smbfs_smb2_get_streaminfo() local 822 smb_fh_opened(fhp); in smbfs_smb2_get_streaminfo() 831 if (fhp != NULL) in smbfs_smb2_get_streaminfo() [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 79 *fhp++ = *ptr++; in xdr_fhandle() 86 *fhp = *ptr; in xdr_fhandle() 95 *ptr = *fhp; in xdr_fhandle() 127 int32_t *fhp; in xdr_writeargs() local 143 *fhp = *ptr++; in xdr_writeargs() 225 *ptr++ = *fhp; in xdr_writeargs() 383 int32_t *fhp; in xdr_readargs() local 674 int32_t *fhp; in xdr_rddirargs() local 892 int32_t *fhp; in xdr_diropargs() local [all …]
|
H A D | nfs3_xdr.c | 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 325 fsize = fhp->fh3_len < NFS_FHMAXDATA ? NFS_FHMAXDATA : fhp->fh3_len; in xdr_inline_encode_nfs_fh3() 326 xsize = fhp->fh3_xlen < NFS_FHMAXDATA ? NFS_FHMAXDATA : fhp->fh3_xlen; in xdr_inline_encode_nfs_fh3() 368 bcopy(&fhp->fh3_len, cp, sizeof (fhp->fh3_len) + fsize); in xdr_inline_encode_nfs_fh3() [all …]
|
H A D | nfs4_xdr.c | 395 dsize = fhp->fh4_len < NFS_FHMAXDATA ? NFS_FHMAXDATA : fhp->fh4_len; in xdr_inline_decode_nfs_fh4() 413 dsize = fhp->fh4_xlen < NFS_FHMAXDATA ? NFS_FHMAXDATA : fhp->fh4_xlen; in xdr_inline_decode_nfs_fh4() 529 nfs_fh4_fmt_t *fhp) in xdr_inline_encode_nfs_fh4() argument 536 fsize = fhp->fh4_len < NFS_FHMAXDATA ? NFS_FHMAXDATA : fhp->fh4_len; in xdr_inline_encode_nfs_fh4() 537 xsize = fhp->fh4_xlen < NFS_FHMAXDATA ? NFS_FHMAXDATA : fhp->fh4_xlen; in xdr_inline_encode_nfs_fh4() 587 bcopy(&fhp->fh4_len, cp, sizeof (fhp->fh4_len) + fsize); in xdr_inline_encode_nfs_fh4() 591 bcopy(&fhp->fh4_xlen, cp, sizeof (fhp->fh4_xlen) + xsize); in xdr_inline_encode_nfs_fh4() 623 nfs_fh4_fmt_t *fhp; in xdr_encode_nfs_fh4() local 628 fsize = fhp->fh4_len < NFS_FHMAXDATA ? NFS_FHMAXDATA : fhp->fh4_len; in xdr_encode_nfs_fh4() 629 xsize = fhp->fh4_xlen < NFS_FHMAXDATA ? NFS_FHMAXDATA : fhp->fh4_xlen; in xdr_encode_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 | nfs4_shadow.c | 268 sv_match(nfs4_fname_t *nm, nfs4_sharedfh_t *fhp, svnode_t *svp) in sv_match() argument 273 SFH4_SAME(svp->sv_dfh, fhp)); in sv_match()
|
/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 116 ssp = FHTOSS(fhp); in smb_usr_xnp() 222 ssp = FHTOSS(fhp); in smb_usr_rw() 331 fhp, in smb_usr_ntcreate() 340 sdp->sd_fh = fhp; in smb_usr_ntcreate() 341 fhp = NULL; in smb_usr_ntcreate() 344 if (fhp != NULL) in smb_usr_ntcreate() 443 sdp->sd_fh = fhp; in smb_usr_printjob() 444 fhp = NULL; in smb_usr_printjob() 447 if (fhp != NULL) in smb_usr_printjob() [all …]
|
H A D | smb_conn.c | 866 smb_co_hold(FHTOCP(fhp)); in smb_fh_hold() 872 smb_co_rele(FHTOCP(fhp)); in smb_fh_rele() 878 smb_co_kill(FHTOCP(fhp)); in smb_fh_close() 921 smb_co_done(FHTOCP(fhp)); in smb_fh_free() 922 kmem_free(fhp, sizeof (*fhp)); in smb_fh_free() 934 struct smb_fh *fhp; in smb_fh_create() local 944 smb_fh_free(FHTOCP(fhp)); in smb_fh_create() 949 *fhpp = fhp; in smb_fh_create() 960 SMB_FH_LOCK(fhp); in smb_fh_opened() 962 fhp->fh_flags |= SMBFH_VALID; in smb_fh_opened() [all …]
|
H A D | smb_conn.h | 357 #define SMB_FH_LOCK(fhp) mutex_enter(&(fhp)->fh_lock) argument 358 #define SMB_FH_UNLOCK(fhp) mutex_exit(&(fhp)->fh_lock) argument 361 #define FHTOCP(fhp) (&(fhp)->fh_co) argument 362 #define FHTOSS(fhp) CPTOSS(((fhp)->fh_co.co_parent)) argument 504 void smb_fh_opened(struct smb_fh *fhp); 505 void smb_fh_close(struct smb_fh *fhp); 506 void smb_fh_hold(struct smb_fh *fhp); 507 void smb_fh_rele(struct smb_fh *fhp);
|
H A D | smb_subr.h | 159 struct smb_cred *scrp, smb_fh_t *fhp, 162 int smb_smb_close(struct smb_share *ssp, smb_fh_t *fhp, 165 int smb_rwuio(smb_fh_t *fhp, uio_rw_t rw, 210 int smb_smb_readx(smb_fh_t *fhp, uint32_t *lenp, 212 int smb_smb_writex(smb_fh_t *fhp, uint32_t *lenp, 241 int smb2_smb_read(smb_fh_t *fhp, uint32_t *lenp, 243 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 | 1124 smb2_smb_read(smb_fh_t *fhp, uint32_t *lenp, in smb2_smb_read() argument 1127 struct smb_share *ssp = FHTOSS(fhp); in smb2_smb_read() 1151 mb_put_uint64le(mbp, fhp->fh_fid2.fid_persistent); in smb2_smb_read() 1152 mb_put_uint64le(mbp, fhp->fh_fid2.fid_volatile); in smb2_smb_read() 1230 smb2_smb_write(smb_fh_t *fhp, uint32_t *lenp, in smb2_smb_write() argument 1233 struct smb_share *ssp = FHTOSS(fhp); in smb2_smb_write() 1257 mb_put_uint64le(mbp, fhp->fh_fid2.fid_persistent); in smb2_smb_write() 1258 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 | 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 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() 1037 struct netobj *fhp, int vers) in nlm_call_unlock() argument 1046 nlm_init_lock(&args.alock, flp, fhp, &oh); in nlm_call_unlock() 1107 struct netobj *fhp, int vers) in nlm_call_test() argument [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()
|