MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zap_name_alloc_uint64

Function zap_name_alloc_uint64

freebsd/contrib/openzfs/module/zfs/zap_micro.c:232–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232static zap_name_t *
233zap_name_alloc_uint64(zap_t *zap, const uint64_t *key, int numints)
234{
235 zap_name_t *zn = kmem_alloc(sizeof (zap_name_t), KM_SLEEP);
236
237 ASSERT(zap->zap_normflags == 0);
238 zn->zn_zap = zap;
239 zn->zn_key_intlen = sizeof (*key);
240 zn->zn_key_orig = zn->zn_key_norm = key;
241 zn->zn_key_orig_numints = zn->zn_key_norm_numints = numints;
242 zn->zn_matchtype = 0;
243
244 zn->zn_hash = zap_hash(zn);
245 return (zn);
246}
247
248static void
249mzap_byteswap(mzap_phys_t *buf, size_t size)

Callers 6

zap_prefetch_uint64Function · 0.85
zap_lookup_uint64Function · 0.85
zap_length_uint64Function · 0.85
zap_add_uint64Function · 0.85
zap_update_uint64Function · 0.85
zap_remove_uint64Function · 0.85

Calls 1

zap_hashFunction · 0.85

Tested by

no test coverage detected