Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/memguard.c
Show First 20 Lines • Show All 498 Lines • ▼ Show 20 Lines | if (memguard_cmp(zone->uz_size)) | ||||
return (1); | return (1); | ||||
/* | /* | ||||
* The safest way of comparsion is to always compare zone name, | * The safest way of comparsion is to always compare zone name, | ||||
* but it is also the slowest way. | * but it is also the slowest way. | ||||
*/ | */ | ||||
return (strcmp(zone->uz_name, vm_memguard_desc) == 0); | return (strcmp(zone->uz_name, vm_memguard_desc) == 0); | ||||
} | } | ||||
unsigned long | |||||
memguard_get_req_size(const void *addr) | |||||
{ | |||||
return (*v2sizep(trunc_page((uintptr_t)addr))); | |||||
} |