Searched refs:smrh (Results 1 – 2 of 2) sorted by relevance
| /xnu-8796.141.3/osfmk/kern/ |
| H A D | smr_hash.h | 429 struct smr_hash *smrh, 443 struct smr_hash *smrh); 464 smr_hash_array_decode(const struct smr_hash *smrh) in smr_hash_array_decode() argument 467 uintptr_t ptr = os_atomic_load(&smrh->smrh_array, relaxed); in smr_hash_array_decode() 490 smr_hash_size(const struct smr_hash *smrh) in smr_hash_size() argument 492 return smr_hash_size(smr_hash_array_decode(smrh)); in smr_hash_size() 516 #define smr_hash_get(smrh, key, traits) ({ \ argument 517 (smrht_obj_t(traits))__smr_hash_get(smrh, key, &(traits)->smrht); \ 535 #define smr_hash_contains(smrh, key, traits) ({ \ argument 537 const struct smr_hash *__h = (smrh); \ [all …]
|
| H A D | smr.c | 777 smr_hash_init(struct smr_hash *smrh, size_t size) in smr_hash_init() argument 791 *smrh = (struct smr_hash){ in smr_hash_init() 797 smr_hash_destroy(struct smr_hash *smrh) in smr_hash_destroy() argument 799 struct smr_hash_array array = smr_hash_array_decode(smrh); in smr_hash_destroy() 802 *smrh = (struct smr_hash){ }; in smr_hash_destroy() 807 struct smr_hash *smrh, 811 struct smr_hash_array array = smr_hash_array_decode(smrh); 826 smrh->smrh_count = 0; 831 struct smr_hash *smrh, in __smr_hash_shrink_and_unlock() argument 835 struct smr_hash_array decptr = smr_hash_array_decode(smrh); in __smr_hash_shrink_and_unlock() [all …]
|