/xnu-2782.1.97/libsyscall/mach/ |
H A D | mig_deallocate.c | 60 mig_deallocate(vm_address_t addr, vm_size_t size) argument 63 addr,
|
/xnu-2782.1.97/libsyscall/wrappers/legacy/ |
H A D | msync.c | 38 msync(void *addr, size_t len, int flags) argument 43 * Page-align "addr" since the system now requires it 47 offset = ((uintptr_t) addr) & PAGE_MASK; 48 addr = (void *) (((uintptr_t) addr) & ~PAGE_MASK); 50 return __msync_nocancel(addr, len, flags);
|
H A D | munmap.c | 44 munmap(void *addr, size_t len) argument 51 * for munmap(addr, 0). Return success now to maintain 57 * Page-align "addr" since the system now requires it 61 offset = ((uintptr_t) addr) & PAGE_MASK; 62 addr = (void *) (((uintptr_t) addr) & ~PAGE_MASK); 65 int result = __munmap(addr, len); 68 __syscall_logger(stack_logging_type_vm_deallocate, (uintptr_t)mach_task_self(), (uintptr_t)addr, len, 0, 0);
|
H A D | mprotect.c | 43 mprotect(void *addr, size_t len, int prot) argument 50 * Page-align "addr" since the system now requires it 54 offset = ((uintptr_t) addr) & PAGE_MASK; 55 aligned_addr = (void *) (((uintptr_t) addr) & ~PAGE_MASK);
|
H A D | accept.c | 46 accept(int s, struct sockaddr *addr, socklen_t *addrlen) argument 48 int ret = __accept_nocancel(s, addr, addrlen);
|
/xnu-2782.1.97/libsyscall/wrappers/unix03/ |
H A D | munmap.c | 40 munmap(void *addr, size_t len) argument 42 int result = __munmap(addr, len); 45 __syscall_logger(stack_logging_type_vm_deallocate, (uintptr_t)mach_task_self(), (uintptr_t)addr, len, 0, 0);
|
H A D | mmap.c | 34 void *__mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off); 43 mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off) argument 61 void *ptr = __mmap(addr, len, prot, flags, fildes, off);
|
/xnu-2782.1.97/tools/tests/superpages/ |
H A D | testsp.c | 58 check_addr0(mach_vm_address_t addr, char *fn) { argument 59 if (!addr) { 76 check_align(mach_vm_address_t addr) { argument 77 if (addr & !SUPERPAGE_MASK) { 78 sprintf(error, "address not aligned properly: 0x%llx", addr); 85 check_r(mach_vm_address_t addr, mach_vm_size_t size, int *res) { argument 86 volatile char *data = (char*)(uintptr_t)addr; 105 check_nr(mach_vm_address_t addr, mach_vm_size_t size, int *res) { argument 109 if ((ret = check_r(addr+i*PAGE_SIZE, PAGE_SIZE, res))) { 118 check_w(mach_vm_address_t addr, mach_vm_size_ argument 134 check_nw(mach_vm_address_t addr, mach_vm_size_t size) argument 148 check_rw(mach_vm_address_t addr, mach_vm_size_t size) argument 220 mach_vm_address_t addr = 0; local 246 mach_vm_address_t addr = FIXED_ADDRESS1; local 267 mach_vm_address_t addr = FIXED_ADDRESS2; local 287 mach_vm_address_t addr = FIXED_ADDRESS1; local 308 mach_vm_address_t addr = 0; local 325 mach_vm_address_t addr = 0, addr2; local 340 mach_vm_deallocate(mach_task_self(), addr, size); local 358 mach_vm_address_t addr = 0; local 387 mach_vm_address_t addr = 0; local 417 mach_vm_address_t addr = 0; local 445 mach_vm_address_t addr = 0; local 470 mach_vm_address_t addr = 0; local 556 uintptr_t addr = 0; local 580 mach_vm_address_t addr = 0; local [all...] |
/xnu-2782.1.97/osfmk/kern/ |
H A D | kext_alloc.h | 38 kern_return_t kext_alloc(vm_offset_t *addr, vm_size_t size, boolean_t fixed); 40 void kext_free(vm_offset_t addr, vm_size_t size);
|
H A D | kext_alloc.c | 138 mach_vm_offset_t addr = (fixed) ? *_addr : kext_post_boot_base; local 140 mach_vm_offset_t addr = (fixed) ? *_addr : kext_alloc_base; local 148 * start at 0 into the map no matter what you pass in addr. We want non 153 &addr, 168 rval = mach_vm_allocate(g_kext_map, &addr, size, flags); 176 if ((addr + size) > kext_alloc_max) { 177 kext_free((vm_offset_t)addr, size); 182 *_addr = (vm_offset_t)addr; 190 kext_free(vm_offset_t addr, vm_size_t size) argument 194 rval = mach_vm_deallocate(g_kext_map, addr, siz [all...] |
H A D | kalloc.c | 502 void *addr; local 514 if (kmem_alloc(alloc_map, (vm_offset_t *)&addr, size) != KERN_SUCCESS) { 516 if (kmem_alloc(kernel_map, (vm_offset_t *)&addr, size) != KERN_SUCCESS) 517 addr = NULL; 520 addr = NULL; 523 if (addr != NULL) { 543 return(addr); 760 void *addr=NULL; local 767 if ((kr = kmem_alloc_pageable(kernel_map, (vm_offset_t *)&addr, size)) != KERN_SUCCESS) 768 addr 783 void *addr=NULL; local 802 void *addr=NULL; local 816 OSFree( void *addr, uint32_t size, OSMallocTag tag) argument [all...] |
/xnu-2782.1.97/EXTERNAL_HEADERS/architecture/i386/ |
H A D | reg_help.h | 58 # define REG_ADDR(type, addr) (addr) 60 # define REG_ADDR(type, addr) (*(volatile type *)(addr))
|
/xnu-2782.1.97/osfmk/i386/ |
H A D | panic_hooks.h | 48 void panic_dump_mem(const void *addr, int len); 56 bool panic_phys_range_before(const void *addr, uint64_t *pphys,
|
H A D | ucode.h | 29 extern int ucode_interface(uint64_t addr);
|
/xnu-2782.1.97/iokit/Kernel/ |
H A D | IOMapper.cpp | 195 ppnum_t addr, IOItemCount pageCount) 210 void IOMapper::iovmInsert(ppnum_t addr, IOItemCount offset, argument 214 iovmInsert(addr, offset++, *pageList++); 217 void IOMapper::iovmInsert(ppnum_t addr, IOItemCount offset, argument 221 iovmInsert(addr, offset + i, pageList[i].phys_addr); 277 void IOMapperIOVMFree(ppnum_t addr, unsigned pages) argument 280 IOMapper::gSystem->iovmFree(addr, (IOItemCount) pages); 283 ppnum_t IOMapperInsertPage(ppnum_t addr, unsigned offset, ppnum_t page) argument 286 if (!addr) panic("!addr"); 194 iovmFreeDMACommand(IODMACommand * command, ppnum_t addr, IOItemCount pageCount) argument 294 IOMapperInsertPPNPages(ppnum_t addr, unsigned offset, ppnum_t *pageList, unsigned pageCount) argument 306 IOMapperInsertUPLPages(ppnum_t addr, unsigned offset, upl_page_info_t *pageList, unsigned pageCount) argument 335 addr64_t addr = IOMapper::gSystem->mapAddr(address); local 347 addr64_t addr = IOMapper::gSystem->mapAddr(address); local 359 addr64_t addr = IOMapper::gSystem->mapAddr(address); local 371 addr64_t addr = IOMapper::gSystem->mapAddr(address); local 383 addr64_t addr = IOMapper::gSystem->mapAddr(address); local 395 addr64_t addr = IOMapper::gSystem->mapAddr(address); local 407 addr64_t addr = IOMapper::gSystem->mapAddr(address); local 419 addr64_t addr = IOMapper::gSystem->mapAddr(address); local [all...] |
/xnu-2782.1.97/bsd/sys/ |
H A D | systm.h | 162 int64_t fulong(user_addr_t addr); 163 int sulong(user_addr_t addr, int64_t longword); 164 uint64_t fuulong(user_addr_t addr); 165 int suulong(user_addr_t addr, uint64_t ulongword); 166 int vslock(user_addr_t addr, user_size_t len); 167 int vsunlock(user_addr_t addr, user_size_t len, int dirtied); 201 int fubyte(user_addr_t addr); 202 int fuibyte(user_addr_t addr); 203 int subyte(user_addr_t addr, int byte); 204 int suibyte(user_addr_t addr, in [all...] |
H A D | malloc.h | 265 #define FREE(addr, type) \ 266 _FREE((void *)addr, type) 268 #define REALLOC(space, cast, addr, size, type, flags) \ 269 (space) = (cast)_REALLOC(addr, size, type, flags) 274 #define FREE_ZONE(addr, size, type) \ 275 _FREE_ZONE((void *)addr, size, type) 283 void *addr, 287 void *addr,
|
/xnu-2782.1.97/tools/ |
H A D | symbolify.py | 37 addr = int(saddr.group(0), 16) 39 if( addr > SLIDE ): 40 addr -= SLIDE 43 if s[0] == addr: 45 elif s[0] > addr: 48 return self.padded("<%s>+%x" % (last[2], addr - last[0])) 53 return self.padded("<%s>+%x" % (last[2], addr - last[0]))
|
/xnu-2782.1.97/osfmk/chud/ |
H A D | chud_thread.c | 204 void *addr; local 209 size = 0; addr = NULL; 228 kfree(addr, size); 233 addr = kalloc(size); 234 if (addr == 0) 245 task_t task, *task_list = (task_t *)addr; 259 thread_t thread, *thread_list = (thread_t *)addr; 283 kfree(addr, size); 297 task_t *task_list = (task_t *)addr; 306 thread_t *thread_list = (thread_t *)addr; 341 void *addr; local 450 void *addr = *task_list; local 488 void *addr = *thread_list; local [all...] |
/xnu-2782.1.97/osfmk/vm/ |
H A D | vm_debug.c | 125 vm_offset_t addr; /* memory for OOL data */ 157 addr, size); 204 &((vm_info_object_t *) addr)[used]; 269 kmem_free(ipc_kernel_map, addr, size); 273 kr = vm_allocate(ipc_kernel_map, &addr, size, VM_FLAGS_ANYWHERE); 279 vm_map_trunc_page(addr, 281 vm_map_round_page(addr + size, 294 kmem_free(ipc_kernel_map, addr, size); 302 vm_map_trunc_page(addr, 304 vm_map_round_page(addr [all...] |
/xnu-2782.1.97/tools/lldbmacros/ |
H A D | utils.py | 202 def WriteStringToMemoryAddress(stringval, addr): 206 addr : int - address where data is to be written 214 numbytes = LazyTarget.GetProcess().WriteMemory(addr, sdata, serr) 219 def WriteInt64ToMemoryAddress(intval, addr): 223 addr - int - address where int is to be written 229 addr = int(hex(addr).rstrip('L'), 16) 230 numbytes = LazyTarget.GetProcess().WriteMemory(addr,sdata, serr) 235 def WritePtrDataToMemoryAddress(intval, addr): 237 This is equivalent of doing *(&((struct pmap *)addr)) [all...] |
/xnu-2782.1.97/bsd/netinet/ |
H A D | in_dhcp.h | 40 const struct in_addr * addr,
|
/xnu-2782.1.97/iokit/IOKit/ |
H A D | IOMapper.h | 40 void IOMapperIOVMFree(ppnum_t addr, unsigned pages); 42 ppnum_t IOMapperInsertPage(ppnum_t addr, unsigned offset, ppnum_t page); 43 void IOMapperInsertPPNPages(ppnum_t addr, unsigned offset, 45 void IOMapperInsertUPLPages(ppnum_t addr, unsigned offset, 108 virtual void iovmFree(ppnum_t addr, IOItemCount pages) = 0; 110 virtual void iovmInsert(ppnum_t addr, IOItemCount offset, ppnum_t page) = 0; 111 virtual void iovmInsert(ppnum_t addr, IOItemCount offset, 113 virtual void iovmInsert(ppnum_t addr, IOItemCount offset, 125 virtual addr64_t mapAddr(IOPhysicalAddress addr) = 0; 131 virtual void iovmFreeDMACommand(IODMACommand * command, ppnum_t addr, IOItemCoun [all...] |
/xnu-2782.1.97/bsd/netinet6/ |
H A D | scope6.c | 120 in6_addrscope(struct in6_addr *addr) argument 124 if (addr->s6_addr8[0] == 0xfe) { 125 scope = addr->s6_addr8[1] & 0xc0; 137 if (addr->s6_addr8[0] == 0xff) { 138 scope = addr->s6_addr8[1] & 0x0f; 160 if (bcmp(&in6addr_loopback, addr, sizeof (*addr) - 1) == 0) { 161 if (addr->s6_addr8[15] == 1) /* loopback */ 163 if (addr->s6_addr8[15] == 0) /* unspecified */ 171 in6_addr2scopeid(struct ifnet *ifp, struct in6_addr *addr) argument 340 scope6_addr2default(struct in6_addr *addr) argument [all...] |
/xnu-2782.1.97/bsd/kern/ |
H A D | kern_mman.c | 168 user_addr = (vm_map_offset_t)uap->addr; 171 AUDIT_ARG(addr, user_addr); 242 else if (addr < vm_map_round_page(p->p_vmspace->vm_daddr + MAXDSIZ, 244 addr = vm_map_round_page(p->p_vmspace->vm_daddr + MAXDSIZ, 301 uap->addr = (user_addr_t)user_addr; 640 mach_vm_offset_t addr; local 648 addr = (mach_vm_offset_t) uap->addr; 650 KERNEL_DEBUG_CONSTANT((BSDDBG_CODE(DBG_BSD_SC_EXTENDED_INFO, SYS_msync) | DBG_FUNC_NONE), (uint32_t)(addr >> 32), (uint32_t)(size >> 32), 0, 0, 0); 651 if (addr 842 mach_vm_offset_t addr; local 937 mach_vm_offset_t addr, first_addr, end; local 1040 vm_map_offset_t addr; local 1076 mach_vm_offset_t addr; local [all...] |