Lines Matching refs:memobject
253 mach_port_t memobject = make_a_mem_object(TEST_ALLOC_SIZE + 1); \
258 VM_PROT_READ | MAP_MEM_ONLY, &out_handle, memobject); \
266 (void)mach_port_deallocate(mach_task_self(), memobject); \
274 mach_port_t memobject = make_a_mem_object(TEST_ALLOC_SIZE + 1); \
279 VM_PROT_READ | MAP_MEM_NAMED_CREATE, &out_handle, memobject); \
283 (void)mach_port_deallocate(mach_task_self(), memobject); \
291 mach_port_t memobject = make_a_mem_object(TEST_ALLOC_SIZE + 1); \
296 VM_PROT_READ | MAP_MEM_VM_COPY, &out_handle, memobject); \
300 (void)mach_port_deallocate(mach_task_self(), memobject); \
308 mach_port_t memobject = make_a_mem_object(TEST_ALLOC_SIZE + 1); \
313 VM_PROT_READ | MAP_MEM_VM_SHARE, &out_handle, memobject); \
317 (void)mach_port_deallocate(mach_task_self(), memobject); \
325 mach_port_t memobject = make_a_mem_object(TEST_ALLOC_SIZE + 1); \
330 VM_PROT_READ | MAP_MEM_NAMED_REUSE, &out_handle, memobject); \
334 (void)mach_port_deallocate(mach_task_self(), memobject); \
342 mach_port_t memobject = make_a_mem_object(TEST_ALLOC_SIZE + 1); \
347 prot, &out_handle, memobject); \
351 (void)mach_port_deallocate(mach_task_self(), memobject); \
732 mach_port_t memobject = make_a_mem_object(TEST_ALLOC_SIZE + 1); in call_map_fn__memobject_fixed() local
735 memobject, KB16, false, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); in call_map_fn__memobject_fixed()
736 (void)mach_port_deallocate(mach_task_self(), memobject); in call_map_fn__memobject_fixed()
744 mach_port_t memobject = make_a_mem_object(TEST_ALLOC_SIZE + 1); in call_map_fn__memobject_fixed_copy() local
747 memobject, KB16, true, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); in call_map_fn__memobject_fixed_copy()
748 (void)mach_port_deallocate(mach_task_self(), memobject); in call_map_fn__memobject_fixed_copy()
756 mach_port_t memobject = make_a_mem_object(TEST_ALLOC_SIZE + 1); in call_map_fn__memobject_anywhere() local
758 kern_return_t kr = fn(map, &out_addr, size, 0, VM_FLAGS_ANYWHERE, memobject, in call_map_fn__memobject_anywhere()
763 (void)mach_port_deallocate(mach_task_self(), memobject); in call_map_fn__memobject_anywhere()
770 mach_port_t memobject = make_a_mem_object(obj_size); in helper_call_map_fn__memobject__ssoo() local
772 kern_return_t kr = fn(map, &out_addr, size, 0, flags, memobject, in helper_call_map_fn__memobject__ssoo()
775 (void)mach_port_deallocate(mach_task_self(), memobject); in helper_call_map_fn__memobject__ssoo()
828 mach_port_t memobject = make_a_mem_object(TEST_ALLOC_SIZE + 1); in help_call_map_fn__memobject__inherit() local
831 memobject, KB16, copy, VM_PROT_DEFAULT, VM_PROT_DEFAULT, inherit); in help_call_map_fn__memobject__inherit()
833 (void)mach_port_deallocate(mach_task_self(), memobject); in help_call_map_fn__memobject__inherit()
876 mach_port_t memobject = make_a_mem_object(TEST_ALLOC_SIZE + 1); in call_map_fn__memobject__flags() local
878 memobject, KB16, false, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); in call_map_fn__memobject__flags()
880 (void)mach_port_deallocate(mach_task_self(), memobject); in call_map_fn__memobject__flags()
887 mach_port_t memobject = make_a_mem_object(TEST_ALLOC_SIZE + 1); in call_map_fn__memobject_copy__flags() local
889 memobject, KB16, true, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); in call_map_fn__memobject_copy__flags()
891 (void)mach_port_deallocate(mach_task_self(), memobject); in call_map_fn__memobject_copy__flags()
926 mach_port_t memobject = make_a_mem_object(TEST_ALLOC_SIZE + 1); in help_call_map_fn__memobject__prot_pairs() local
929 memobject, KB16, copy, cur, max, VM_INHERIT_DEFAULT); in help_call_map_fn__memobject__prot_pairs()
931 (void)mach_port_deallocate(mach_task_self(), memobject); in help_call_map_fn__memobject__prot_pairs()
1015 IMPL_MAP_FN_START_SIZE_FLAGS(map_fn, memobject) \