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

Function memguard_cmp_zone

freebsd/vm/memguard.c:489–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489int
490memguard_cmp_zone(uma_zone_t zone)
491{
492
493 if ((memguard_options & MG_GUARD_NOFREE) == 0 &&
494 zone->uz_flags & UMA_ZONE_NOFREE)
495 return (0);
496
497 if (memguard_cmp(zone->uz_size))
498 return (1);
499
500 /*
501 * The safest way of comparsion is to always compare zone name,
502 * but it is also the slowest way.
503 */
504 return (strcmp(zone->uz_name, vm_memguard_desc) == 0);
505}
506
507unsigned long
508memguard_get_req_size(const void *addr)

Callers 1

uma_zalloc_debugFunction · 0.85

Calls 2

memguard_cmpFunction · 0.85
strcmpFunction · 0.85

Tested by

no test coverage detected