Home
last modified time | relevance | path

Searched refs:mach_vm_address_t (Results 1 – 25 of 170) sorted by relevance

1234567

/xnu-10002.41.9/tests/vm/
H A Dvm_allocation.c325 #define MACH_VM_ADDRESS_T(address) (*((mach_vm_address_t *)(uintptr_t)(address)))
327 static int vm_address_size = sizeof(mach_vm_address_t);
397 typedef kern_return_t (*allocate_fn_t)(vm_map_t, mach_vm_address_t *, mach_vm_size_t, int);
403 static mach_vm_address_t fixed_vm_address = 0x0;
407 void assert_deallocate_success(mach_vm_address_t address, mach_vm_size_t size);
413 check_fixed_address(mach_vm_address_t *address, mach_vm_size_t size) in check_fixed_address()
425 wrapper_mach_vm_allocate(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_allocate()
432 wrapper_mach_vm_map(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_map()
441 wrapper_mach_vm_map_4kB(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_map_4kB()
449 wrapper_mach_vm_map_2MB(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_map_2MB()
[all …]
H A Dvm_ranges.c101 static mach_vm_address_t
102 assert_allocate(mach_vm_address_t dst, int vm_flags) in assert_allocate()
137 assert_allocate_eq(mach_vm_address_t dst, int vm_flags) in assert_allocate_eq()
139 mach_vm_address_t target = dst; in assert_allocate_eq()
147 static mach_vm_address_t
148 assert_allocate_in_range(int target_range, mach_vm_address_t dst, int vm_flags) in assert_allocate_in_range()
257 mach_vm_address_t addr; in ensure_rogue_fixed_fails()
337 mach_vm_address_t target = range.min_address - ALLOCATION_SIZE;
348 mach_vm_address_t target = range.max_address - 100 * ALLOCATION_SIZE;
352 T_EXPECT_EQ((mach_vm_address_t)dst, target, "unexpected allocation address");
[all …]
H A Dvm_user.c44 static mach_vm_address_t
48 mach_vm_address_t addr; in get_permanent_mapping()
75 mach_vm_address_t addr, addr2;
104 mach_vm_address_t addr;
131 mach_vm_address_t addr, remap_addr, addr2;
167 mach_vm_address_t addr;
H A Dvm_reclaim.c60 …ize, mach_vm_reclaim_ringbuffer_v1_t ringbuffer, unsigned char val, mach_vm_address_t *addr /* OUT… in allocate_and_defer_free()
81 mach_vm_address_t addr;
136 check_buffer(mach_vm_address_t addr, size_t size, unsigned char expected) in check_buffer()
152 assert_buffer_has_changed_and_crash(mach_vm_address_t addr, size_t size, unsigned char expected) in assert_buffer_has_changed_and_crash()
176 mach_vm_address_t addr;
203 mach_vm_address_t addr = 0; in allocate_and_suspend()
226 kr = mach_vm_deallocate(mach_task_self(), (mach_vm_address_t) ringbuffer.buffer, buffer_size); in allocate_and_suspend()
408 mach_vm_address_t addr = 0;
437 mach_vm_address_t addr = 0;
452 mach_vm_address_t addr;
[all …]
/xnu-10002.41.9/bsd/kern/
H A Dmach_loader.h64 mach_vm_address_t all_image_info_addr;
84 mach_vm_address_t min_vm_addr;
85 mach_vm_address_t max_vm_addr;
86 mach_vm_address_t ro_vm_start;
87 mach_vm_address_t ro_vm_end;
97 mach_vm_address_t dynlinker_ro_vm_start;
98 mach_vm_address_t dynlinker_ro_vm_end;
/xnu-10002.41.9/tools/tests/superpages/
H A Dtestsp.c60 check_addr0(mach_vm_address_t addr, char *fn) in check_addr0()
70 check_addr(mach_vm_address_t addr1, mach_vm_address_t addr2, char *fn) in check_addr()
80 check_align(mach_vm_address_t addr) in check_align()
90 check_r(mach_vm_address_t addr, mach_vm_size_t size, int *res) in check_r()
113 check_nr(mach_vm_address_t addr, mach_vm_size_t size, int *res) in check_nr()
127 check_w(mach_vm_address_t addr, mach_vm_size_t size) in check_w()
145 check_nw(mach_vm_address_t addr, mach_vm_size_t size) in check_nw()
160 check_rw(mach_vm_address_t addr, mach_vm_size_t size) in check_rw()
178 mach_vm_address_t global_addr = 0;
252 mach_vm_address_t addr = 0; in test_allocate_size_any()
[all …]
/xnu-10002.41.9/osfmk/kern/
H A Dkern_cdata.h84 mach_vm_address_t kcd_cd_totalout_addr;
85 mach_vm_address_t kcd_cd_totalin_addr;
120 mach_vm_address_t kcd_addr_begin;
121 mach_vm_address_t kcd_addr_end;
141 kcdata_descriptor_t kcdata_memory_alloc_init(mach_vm_address_t crash_data_p, unsigned data_type, un…
143 …kcdata_descriptor_t data, mach_vm_address_t buffer_addr_p, unsigned data_type, unsigned size, unsi…
187 kern_return_t kcdata_memcpy(kcdata_descriptor_t data, mach_vm_address_t dst_addr, const void * src_…
188 kern_return_t kcdata_bzero(kcdata_descriptor_t data, mach_vm_address_t dst_addr, uint32_t size);
189 …memory_addr(kcdata_descriptor_t data, uint32_t type, uint32_t size, mach_vm_address_t * user_addr);
191 …uint32_t type_of_element, uint32_t size_of_element, uint32_t count, mach_vm_address_t * user_addr);
H A Dkern_cdata.c42 …ata_descriptor_t data, uint32_t type, uint32_t size, uint64_t flags, mach_vm_address_t *user_addr);
306 kcdata_memory_alloc_init(mach_vm_address_t buffer_addr_p, unsigned data_type, unsigned size, unsign… in kcdata_memory_alloc_init()
309 mach_vm_address_t user_addr = 0; in kcdata_memory_alloc_init()
329 kcdata_memory_static_init(kcdata_descriptor_t data, mach_vm_address_t buffer_addr_p, unsigned data_… in kcdata_memory_static_init()
331 mach_vm_address_t user_addr = 0; in kcdata_memory_static_init()
351 mach_vm_address_t curend = data->kcd_addr_begin + data->kcd_length; in kcdata_endalloc()
367 mach_vm_address_t curend = data->kcd_addr_begin + data->kcd_length; in kcdata_release_endallocs()
470 …y_f)(void *, const void *, size_t), uint64_t type, mach_vm_address_t totalout_addr, mach_vm_addres… in kcdata_init_compress_state()
528 mach_vm_address_t user_addr, totalout_addr, totalin_addr; in kcdata_init_compress()
804 …data->kcd_addr_end = (mach_vm_address_t) space_start + (total_uncompressed_size - total_uncompress… in kcdata_compress_chunk_with_flags()
[all …]
/xnu-10002.41.9/tests/
H A Dkernel_inspection.c103 (mach_vm_address_t)(uintptr_t)threads, in attempt_kernel_inspection()
117 (mach_vm_address_t)(uintptr_t)table, in attempt_kernel_inspection()
122 (mach_vm_address_t)(uintptr_t)tree, in attempt_kernel_inspection()
138mach_vm_address_t addr = 0x10000000; /* can be whatever, the call should fail before getting to VM… in attempt_kernel_inspection()
140 kr = mach_vm_read(task, (mach_vm_address_t)addr, 8, &data, &cnt); in attempt_kernel_inspection()
183 (mach_vm_address_t)(uintptr_t)tasks,
195 (mach_vm_address_t)(uintptr_t)tasks,
202 (mach_vm_address_t)(uintptr_t)psets,
H A Dos_thread_self_restrict_pagers.c336 mach_vm_address_t addr = 0; in pager_test()
383 (mach_vm_address_t)state, in pager_test()
404 (mach_vm_address_t *)&copy_state, in pager_test()
409 (mach_vm_address_t)state, in pager_test()
434 (mach_vm_address_t)state, in pager_test()
446 (mach_vm_address_t *)&copy_state, in pager_test()
484 mach_vm_behavior_set(mach_task_self(), (mach_vm_address_t)state, PAGE_SIZE, VM_BEHAVIOR_PAGEOUT); in pager_test()
500 kr = vm_protect(mach_task_self(), (mach_vm_address_t)state, PAGE_SIZE, FALSE, VM_PROT_DEFAULT); in pager_test()
/xnu-10002.41.9/libsyscall/mach/
H A Dmach_vm.c49 mach_vm_address_t *address, in mach_vm_allocate()
72 mach_vm_address_t address, in mach_vm_deallocate()
93 mach_vm_address_t address, in mach_vm_protect()
119 mach_vm_address_t mach_addr; in vm_allocate()
121 mach_addr = (mach_vm_address_t)*address; in vm_allocate()
163 mach_vm_address_t *address, in mach_vm_map()
199 mach_vm_address_t *address, in mach_vm_remap()
204 mach_vm_address_t src_address, in mach_vm_remap()
228 mach_vm_address_t *address, in mach_vm_remap_new()
233 mach_vm_address_t src_address, in mach_vm_remap_new()
[all …]
H A Dvm_reclaim.c83 construct_entry(mach_vm_address_t start_addr, uint32_t size) in construct_entry()
103 kr = mach_vm_map(mach_task_self(), (mach_vm_address_t *)&ring_buffer->buffer, in mach_vm_reclaim_ringbuffer_init()
111 (mach_vm_address_t)ring_buffer->buffer, buffer_size); in mach_vm_reclaim_ringbuffer_init()
114 mach_vm_deallocate(mach_task_self(), (mach_vm_address_t)ring_buffer->buffer, in mach_vm_reclaim_ringbuffer_init()
124 mach_vm_reclaim_ringbuffer_v1_t ring_buffer, mach_vm_address_t start_addr, uint32_t size, in mach_vm_reclaim_mark_free()
162 …mach_vm_reclaim_ringbuffer_v1_t ring_buffer, uint64_t id, mach_vm_address_t start_addr, uint32_t s… in mach_vm_reclaim_mark_used()
/xnu-10002.41.9/osfmk/mach/
H A Dmach_vm.defs109 inout address : mach_vm_address_t;
120 inout address : mach_vm_address_t;
136 address : mach_vm_address_t;
146 address : mach_vm_address_t;
165 address : mach_vm_address_t;
179 address : mach_vm_address_t;
201 address : mach_vm_address_t;
218 address : mach_vm_address_t;
248 address : mach_vm_address_t;
267 source_address : mach_vm_address_t;
[all …]
H A Dexclaves.h74 mach_vm_address_t msg_buffer, mach_vm_size_t size, exclaves_tag_t *tag,
129 mach_vm_address_t src_buffer, mach_vm_size_t size, mach_vm_size_t offset);
155 mach_vm_address_t dst_buffer, mach_vm_size_t size, mach_vm_size_t offset);
348 exclaves_id_t identifier, mach_vm_address_t buffer, mach_vm_size_t size);
H A Dvm_reclaim.h42 mach_vm_address_t address;
100 mach_vm_address_t start_addr,
112 mach_vm_address_t start_addr,
/xnu-10002.41.9/iokit/IOKit/
H A DIOBufferMemoryDescriptor.h103 mach_vm_address_t alignment,
104 mach_vm_address_t physicalMask);
119 mach_vm_address_t alignment,
120 mach_vm_address_t physicalMask);
189 mach_vm_address_t source,
268 mach_vm_address_t physicalMask);
/xnu-10002.41.9/bsd/tests/
H A Dbsd_tests.c147 kern_return_t xnupost_copyout_test(xnupost_test_t t, mach_vm_address_t outaddr);
150 xnupost_copyout_test(xnupost_test_t t, mach_vm_address_t outaddr) in xnupost_copyout_test()
219 mach_vm_address_t user_addr = 0; in xnupost_export_testdata()
220 mach_vm_address_t tmp_entry_addr = 0; in xnupost_export_testdata()
239 …kret = kcdata_memory_static_init(&kcd, (mach_vm_address_t)outp, KCDATA_BUFFER_BEGIN_XNUPOST_CONFIG… in xnupost_export_testdata()
276 tmp_entry_addr = (mach_vm_address_t)((uint64_t)(user_addr) + (uint64_t)(i * elem_size)); in xnupost_export_testdata()
280 user_addr = (mach_vm_address_t)((uint64_t)(user_addr) + (uint64_t)(i * elem_size)); in xnupost_export_testdata()
283 tmp_entry_addr = (mach_vm_address_t)((uint64_t)(user_addr) + (uint64_t)(i * elem_size)); in xnupost_export_testdata()
/xnu-10002.41.9/iokit/Kernel/
H A DIOBufferMemoryDescriptor.cpp116 mach_vm_address_t physicalMask = 0; in initWithOptions()
126 mach_vm_address_t source, in withCopy()
180 mach_vm_address_t alignment, in initWithPhysicalMask()
181 mach_vm_address_t physicalMask) in initWithPhysicalMask()
185 mach_vm_address_t highestMask = 0; in initWithPhysicalMask()
414 _ranges.v64->address = (mach_vm_address_t) pgz_decode(_buffer, _capacity); in initWithPhysicalMask()
451 mach_vm_address_t buffer = reserved->map->getAddress(); in initWithPhysicalMask()
468 mach_vm_address_t alignment, in initControlWithPhysicalMask()
469 mach_vm_address_t physicalMask) in initControlWithPhysicalMask()
491 (mach_vm_address_t)0); in initWithGuardPages()
[all …]
H A DIOLib.cpp436 mach_vm_address_t allocationStart, in IOMallocAlignedSetHdr()
437 mach_vm_address_t alignedStart) in IOMallocAlignedSetHdr()
455 mach_vm_address_t alignedStart, in IOMallocAlignedHdrCorruptionPanic()
458 mach_vm_address_t address = 0; in IOMallocAlignedHdrCorruptionPanic()
459 mach_vm_address_t recalAlignedStart = 0; in IOMallocAlignedHdrCorruptionPanic()
483 static __header_always_inline mach_vm_address_t
486 mach_vm_address_t alignedStart, in IOMallocAlignedGetAddress()
489 mach_vm_address_t address = 0; in IOMallocAlignedGetAddress()
490 mach_vm_address_t recalAlignedStart = 0; in IOMallocAlignedGetAddress()
624 (mach_vm_address_t)address, &adjustedSize); in IOFreeAligned_internal()
[all …]
/xnu-10002.41.9/osfmk/ipc/
H A Dmach_msg.c130 mach_vm_address_t rcv_addr,
132 mach_vm_address_t aux_addr,
204 mach_vm_address_t context; in mach_msg_receive_results_kevent()
217 mach_vm_address_t msg_rcv_addr = self->ith_msg_addr; in mach_msg_receive_results_kevent()
221 mach_vm_address_t aux_rcv_addr = self->ith_aux_addr; in mach_msg_receive_results_kevent()
479 mach_vm_address_t rcv_addr = aux_vec->msgv_rcv_addr ? in mach_msg_validate_data_vectors()
691 mach_vm_address_t msg_addr, in mach_msg_copyin_user_header()
771 mach_vm_address_t msg_addr, in mach_msg_trap_send()
772 mach_vm_address_t aux_addr, in mach_msg_trap_send()
880 mach_vm_address_t msg_addr, in mach_msg_trap_receive()
[all …]
/xnu-10002.41.9/tests/vm_memory_tests_src/
H A Dcommon.c57 …kr = mach_vm_allocate(mach_task_self(), (mach_vm_address_t *)buffer, (mach_vm_size_t)sb.st_size, V… in mach_server_data_setup()
64 mach_server_data_cleanup(void *buffer, mach_vm_address_t src, mach_vm_size_t size) in mach_server_data_cleanup()
71 mach_vm_deallocate(mach_task_self(), (mach_vm_address_t)buffer, (mach_vm_size_t)sb.st_size); in mach_server_data_cleanup()
96 mach_vm_address_t src, in mach_server_contruct_payload()
120 mach_server_create_allocation(mach_vm_address_t *src, mach_vm_size_t size, void *buffer) in mach_server_create_allocation()
125 mach_vm_address_t localsrc = 0; in mach_server_create_allocation()
H A Dmach_vm_tests.h55 void mach_server_data_cleanup(void *, mach_vm_address_t, mach_vm_size_t);
57 void mach_server_create_allocation(mach_vm_address_t *, mach_vm_size_t, void *);
58 void mach_server_contruct_payload(ipc_message_t *, mach_vm_address_t, mach_port_t, mach_vm_size_t, …
/xnu-10002.41.9/osfmk/arm64/
H A Dalternate_debugger.c73 static mach_vm_address_t alt_code;
75 static mach_vm_address_t alt_pages;
79 typedef void (*t_call_altdbg_fn)(mach_vm_size_t size, mach_vm_address_t pages, mach_vm_size_t pages…
82 extern void alternate_debugger_just_return(__unused mach_vm_size_t size, __unused mach_vm_address_t
/xnu-10002.41.9/osfmk/mach/arm/
H A Dvm_types.h107 typedef uint64_t mach_vm_address_t __kernel_ptr_semantics;
131 typedef uint32_t mach_vm_address_t; typedef
135 typedef uint64_t mach_vm_address_t __kernel_ptr_semantics;
/xnu-10002.41.9/bsd/skywalk/channel/
H A Dos_channel_private.h488 mach_vm_address_t cinfo_mem_base; /* VM mapping for task */
574 const mach_vm_address_t chrd_shmem_base_addr;
575 const mach_vm_address_t chrd_def_buf_base_addr;
576 const mach_vm_address_t chrd_large_buf_base_addr;
577 const mach_vm_address_t chrd_md_base_addr;
578 const mach_vm_address_t chrd_sd_base_addr;
579 const mach_vm_address_t chrd_bft_base_addr;

1234567