Searched refs:KB16 (Results 1 – 4 of 4) sorted by relevance
| /xnu-11215/tests/vm/ |
| H A D | vm_memory_entry_parent_test.c | 9 #define KB16 ((mach_vm_size_t)16*1024) macro 42 size = KB16 * 2; 125 KB16, VM_PROT_READ | VM_PROT_WRITE, 0, &parent_handle); 129 kr = mach_vm_map(mach_task_self(), &alloced_addr, KB16, 0, VM_FLAGS_ANYWHERE, 140 memory_object_size_t entry_size = KB16; 158 memory_object_size_t parent_size = KB16; 167 memory_object_size_t entry_size = KB16; 174 T_EXPECT_EQ(entry_size, KB16, "make entry_handle size unchanged on error"); 186 KB16, VM_PROT_READ, 0, &parent_handle); 193 memory_object_size_t entry_size = KB16; [all …]
|
| H A D | vm_parameter_validation.c | 100 static _Alignas(KB16) char guard_page[KB16]; in _Alignas() argument 899 kern_return_t kr = fn(map, &out_addr, KB16, 0, flags, in help_call_map_fn__allocate__prot_pairs() 900 0, KB16, copy, cur, max, VM_INHERIT_DEFAULT); in help_call_map_fn__allocate__prot_pairs() 928 kern_return_t kr = fn(map, &out_addr, KB16, 0, flags, in help_call_map_fn__memobject__prot_pairs() 1930 prq_buf_size + KB16, VM_FLAGS_ANYWHERE); in call_mach_vm_page_range_query() 1941 mach_vm_size_t in_count = size / KB16 + (size % KB16 ? 1 : 0); in call_mach_vm_page_range_query() 1986 int err = mprotect(mincore_guard, KB16, PROT_NONE); in call_mincore() 3226 alignment_for_can_reuse = KB16 - 1; 3589 assert((fd & ((int)KB16 - 1)) == fd); 3592 assert((fd & ((int)(KB16 >> 1) - 1)) == fd); [all …]
|
| /xnu-11215/osfmk/tests/ |
| H A D | vm_parameter_validation_kern.c | 808 if (PAGE_SIZE == KB16) { in call_vm_map_page_info() 1018 vm_reclaim_max_threshold = KB16; in test_mach_vm_deferred_reclamation_buffer_init() 1287 0, KB16, copy, VM_PROT_DEFAULT, VM_PROT_DEFAULT, inherit); in help_call_map_fn__allocate__inherit() 1384 kern_return_t kr = fn(map, &out_addr, KB16, 0, flags, in help_call_map_fn__allocate__prot_pairs() 1385 0, KB16, copy, cur, max, VM_INHERIT_DEFAULT); in help_call_map_fn__allocate__prot_pairs() 1386 deallocate_if_not_fixed_overwrite(kr, map, out_addr, KB16, flags); in help_call_map_fn__allocate__prot_pairs() 1413 kern_return_t kr = fn(map, &out_addr, KB16, 0, flags, in help_call_map_fn__memobject__prot_pairs() 1414 memobject, KB16, copy, cur, max, VM_INHERIT_DEFAULT); in help_call_map_fn__memobject__prot_pairs() 1724 uint64_t fd_mask = KB16 - 1; in IMPL() 1731 kernel_generate_golden = (file_descriptor & (KB16 >> 1)) > 0; in IMPL() [all …]
|
| H A D | vm_parameter_validation.h | 209 #define KB16 ((addr_t)16*1024) macro 214 #define TEST_ALLOC_SIZE (4 * KB16) 2427 if (!kern_trialname_generation && isRosetta() && round_up_page(obj_size, KB16) == 0) { 3418 assert(align_mask == 0 || align_mask == KB4 - 1 || align_mask == KB16 - 1); in create_allocation() 3420 result.guard_size = KB16; in create_allocation() 3421 result.size = round_up_page(new_size, KB16); in create_allocation() 3525 result.guard_size = KB16; in create_unallocation() 3526 result.size = round_up_page(new_size, KB16); in create_unallocation()
|