Home
last modified time | relevance | path

Searched refs:allocated_size (Results 1 – 12 of 12) sorted by relevance

/xnu-11215/tests/
H A Dproc_info_list_kthreads.c63 int allocated_size = expected_size + EXTRA_THREADS * (int)sizeof(uint64_t); variable
64 uint64_t *thread_list_tmp = malloc((size_t)allocated_size);
65 …QUIET; T_WITH_ERRNO; T_ASSERT_NOTNULL(thread_list_tmp, "malloc(size = %d) failed", allocated_size);
67 buf_used = proc_pidinfo(0, PROC_PIDLISTTHREADIDS, 0, thread_list_tmp, (int)allocated_size);
83 if (buf_used < allocated_size) {
/xnu-11215/tests/safe_allocation_src/
H A Dtest_utils.h47 allocated_size = 0; in reset()
52 static std::size_t allocated_size; member
61 allocated_size = n; in allocate()
82 std::size_t tracking_allocator::allocated_size = 0;
H A Dctor.allocate.cpp31 CHECK(tracking_allocator::allocated_size == 10 * sizeof(T)); in tests()
/xnu-11215/bsd/kern/code_signing/
H A Dxnu.c183 size_t *allocated_size) in xnu_image4_storage_data() argument
185 if (allocated_size) { in xnu_image4_storage_data()
186 *allocated_size = sizeof(_xnu_image4_storage); in xnu_image4_storage_data()
H A Dppl.c518 size_t *allocated_size) in ppl_image4_storage_data() argument
520 return pmap_image4_pmap_data(allocated_size); in ppl_image4_storage_data()
H A Dtxm.c1568 __unused size_t *allocated_size) in txm_image4_storage_data() argument
/xnu-11215/bsd/sys/
H A Dcode_signing_internal.h96 size_t * allocated_size);
H A Dcode_signing.h342 size_t *allocated_size);
/xnu-11215/osfmk/vm/
H A Dpmap_cs.h782 size_t *allocated_size);
/xnu-11215/bsd/kern/
H A Dkern_codesigning.c1396 size_t *allocated_size) in kernel_image4_storage_data() argument
1398 return CSM_PREFIX(image4_storage_data)(allocated_size); in kernel_image4_storage_data()
/xnu-11215/osfmk/kern/
H A Ddebug.c561 size_t *allocated_size; in phys_carveout_init() member
589 *carveouts[i].allocated_size = temp_carveout_size; in phys_carveout_init()
/xnu-11215/osfmk/tests/
H A Dvm_parameter_validation.h3428 mach_vm_size_t allocated_size = result.size; in create_allocation() local
3429 if (__builtin_add_overflow(result.size, result.guard_size * 4, &allocated_size)) { in create_allocation()
3438 kr = allocate_away_from_zero(result.map, &allocated_base, allocated_size, in create_allocation()
3533 mach_vm_size_t allocated_size = result.size; in create_unallocation() local
3534 if (__builtin_add_overflow(result.size, result.guard_size * 2, &allocated_size)) { in create_unallocation()
3542 kr = allocate_away_from_zero(result.map, &allocated_base, allocated_size, 0, 0); in create_unallocation()