Lines Matching refs:kr
40 kern_return_t kr; in PageSize() local
43 kr = task_info (task, TASK_VM_INFO, (task_info_t) &vm_info, &info_count); in PageSize()
44 if (kr == KERN_SUCCESS) in PageSize()
52 …ze, TASK_VM_INFO %d, TASK_VM_INFO_COUNT %d, kern return %d", TASK_VM_INFO, TASK_VM_INFO_COUNT, kr); in PageSize()
242 kern_return_t kr; in GetRegionSizes() local
246 kr = task_info(task, TASK_VM_INFO_PURGEABLE, (task_info_t)&vm_info, &info_count); in GetRegionSizes()
248 kr = task_info(task, TASK_VM_INFO, (task_info_t)&vm_info, &info_count); in GetRegionSizes()
250 if (kr == KERN_SUCCESS) in GetRegionSizes()
356 …kern_return_t kr = mach_vm_region(task, &addr, &size, VM_REGION_TOP_INFO, (vm_region_info_t)&info,… in GetMemorySizes() local
357 if (kr != KERN_SUCCESS) break; in GetMemorySizes()
371 …kr = mach_vm_region(task, &b_addr, &b_size, VM_REGION_BASIC_INFO, (vm_region_info_t)&b_info, &coun… in GetMemorySizes()
372 if (kr != KERN_SUCCESS) break; in GetMemorySizes()
467 kern_return_t kr; in GetPurgeableAndAnonymous() local
481 kr = (*task_purgable_info_ptr)(task, &purgeable_info); in GetPurgeableAndAnonymous()
482 if (kr == KERN_SUCCESS) { in GetPurgeableAndAnonymous()
491 kr = task_info(task, TASK_VM_INFO_PURGEABLE, (task_info_t)&vm_info, &info_count); in GetPurgeableAndAnonymous()
493 kr = task_info(task, TASK_VM_INFO, (task_info_t)&vm_info, &info_count); in GetPurgeableAndAnonymous()
495 if (kr == KERN_SUCCESS) in GetPurgeableAndAnonymous()