Searched refs:smrh (Results 1 – 2 of 2) sorted by relevance
| /xnu-10063.141.1/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 | 2279 smr_hash_init(struct smr_hash *smrh, size_t size) in smr_hash_init() argument 2293 *smrh = (struct smr_hash){ in smr_hash_init() 2299 smr_hash_destroy(struct smr_hash *smrh) in smr_hash_destroy() argument 2301 struct smr_hash_array array = smr_hash_array_decode(smrh); in smr_hash_destroy() 2304 *smrh = (struct smr_hash){ }; in smr_hash_destroy() 2309 struct smr_hash *smrh, 2313 struct smr_hash_array array = smr_hash_array_decode(smrh); 2328 smrh->smrh_count = 0; 2333 struct smr_hash *smrh, in __smr_hash_shrink_and_unlock() argument 2337 struct smr_hash_array decptr = smr_hash_array_decode(smrh); in __smr_hash_shrink_and_unlock() [all …]
|