/xnu-2422.115.4/libkern/c++/ |
H A D | OSRuntimeSupport.c | 6 void _ZN11OSMetaClassdlEPvm(void *mem, unsigned long size); 7 void _ZN11OSMetaClassdlEPvm(__attribute__((__unused__)) void *mem, __attribute__((__unused__)) unsigned long size) { } argument
|
/xnu-2422.115.4/libsyscall/mach/ |
H A D | mig_deallocate.c | 60 mig_deallocate(vm_address_t addr, vm_size_t size) argument 64 size);
|
H A D | mig_allocate.c | 60 mig_allocate(vm_address_t *addr_p, vm_size_t size) argument 64 size,
|
H A D | mach_vm.c | 50 mach_vm_size_t size, 55 rv = _kernelrpc_mach_vm_allocate_trap(target, address, size, flags); 58 rv = _kernelrpc_mach_vm_allocate(target, address, size, flags); 62 __syscall_logger(stack_logging_type_vm_allocate | userTagFlags, (uintptr_t)target, (uintptr_t)size, 0, (uintptr_t)*address, 0); 72 mach_vm_size_t size) 76 rv = _kernelrpc_mach_vm_deallocate_trap(target, address, size); 79 rv = _kernelrpc_mach_vm_deallocate(target, address, size); 82 __syscall_logger(stack_logging_type_vm_deallocate, (uintptr_t)target, (uintptr_t)address, size, 0, 0); local 92 mach_vm_size_t size, 98 rv = _kernelrpc_mach_vm_protect_trap(task, address, size, set_maximu 47 mach_vm_allocate( mach_port_name_t target, mach_vm_address_t *address, mach_vm_size_t size, int flags) argument 69 mach_vm_deallocate( mach_port_name_t target, mach_vm_address_t address, mach_vm_size_t size) argument 89 mach_vm_protect( mach_port_name_t task, mach_vm_address_t address, mach_vm_size_t size, boolean_t set_maximum, vm_prot_t new_protection) argument 109 vm_allocate( mach_port_name_t task, vm_address_t *address, vm_size_t size, int flags) argument 130 vm_deallocate( mach_port_name_t task, vm_address_t address, vm_size_t size) argument 143 vm_protect( mach_port_name_t task, vm_address_t address, vm_size_t size, boolean_t set_maximum, vm_prot_t new_protection) argument 158 mach_vm_map( mach_port_name_t target, mach_vm_address_t *address, mach_vm_size_t size, mach_vm_offset_t mask, int flags, mem_entry_name_port_t object, memory_object_offset_t offset, boolean_t copy, vm_prot_t cur_protection, vm_prot_t max_protection, vm_inherit_t inheritance) argument 192 mach_vm_remap( mach_port_name_t target, mach_vm_address_t *address, mach_vm_size_t size, mach_vm_offset_t mask, int flags, mach_port_name_t src_task, mach_vm_address_t src_address, boolean_t copy, vm_prot_t *cur_protection, vm_prot_t *max_protection, vm_inherit_t inheritance) argument 221 mach_vm_read( mach_port_name_t target, mach_vm_address_t address, mach_vm_size_t size, vm_offset_t *data, mach_msg_type_number_t *dataCnt) argument 243 vm_map( mach_port_name_t target, vm_address_t *address, vm_size_t size, vm_offset_t mask, int flags, mem_entry_name_port_t object, vm_offset_t offset, boolean_t copy, vm_prot_t cur_protection, vm_prot_t max_protection, vm_inherit_t inheritance) argument 271 vm_remap( mach_port_name_t target, vm_address_t *address, vm_size_t size, vm_offset_t mask, int flags, mach_port_name_t src_task, vm_address_t src_address, boolean_t copy, vm_prot_t *cur_protection, vm_prot_t *max_protection, vm_inherit_t inheritance) argument 300 vm_read( mach_port_name_t target, vm_address_t address, vm_size_t size, vm_offset_t *data, mach_msg_type_number_t *dataCnt) argument [all...] |
/xnu-2422.115.4/bsd/dev/dtrace/ |
H A D | dtrace_alloc.c | 87 vm_size_t size; local 97 * Allocate a zone for each size we are going to handle. 100 for (i = 0, size = 1; size < dtrace_alloc_max; i++, size <<= 1) { 101 if (size < DTRACE_ALLOC_MINSIZE) { 105 if (size == DTRACE_ALLOC_MINSIZE) { 108 d_zone[i] = zinit(size, d_zone_max[i] * size, size, d_zone_nam 112 dtrace_alloc(vm_size_t size) argument 138 dtrace_free(void *data, vm_size_t size) argument [all...] |
/xnu-2422.115.4/libsyscall/wrappers/ |
H A D | _libc_funcptr.c | 34 malloc(size_t size) argument 36 return _libkernel_functions->malloc(size); 48 realloc(void *ptr, size_t size) argument 50 return _libkernel_functions->realloc(ptr, size); 55 reallocf(void *ptr, size_t size) argument 57 void *nptr = realloc(ptr, size);
|
/xnu-2422.115.4/osfmk/ipc/ |
H A D | ipc_table.c | 99 unsigned int num, /* size of array */ 101 vm_size_t elemsize) /* size of elements */ 105 vm_size_t size; local 108 /* first use powers of two, up to the page size */ 110 for (index = 0, size = 1; 111 (index < num) && (size < PAGE_SIZE); 112 size <<= 1) { 113 if (size >= minsize) { 114 its[index].its_size = (ipc_table_elems_t)(size / elemsize); 126 period++, size 176 ipc_table_alloc( vm_size_t size) argument 201 ipc_table_free( vm_size_t size, void * table) argument [all...] |
H A D | ipc_hash.c | 189 #define IH_TABLE_HASH(obj, size) \ 190 ((mach_port_index_t)((((uintptr_t) (obj)) >> 6) % (size))) 203 ipc_entry_num_t size, 214 hindex = IH_TABLE_HASH(obj, size); 226 assert(index < size); 235 if (++hindex == size) 253 ipc_entry_num_t size, 263 hindex = IH_TABLE_HASH(obj, size); 275 if (++hindex == size) 293 ipc_entry_num_t size, 201 ipc_hash_table_lookup( ipc_entry_t table, ipc_entry_num_t size, ipc_object_t obj, mach_port_name_t *namep, ipc_entry_t *entryp) argument 251 ipc_hash_table_insert( ipc_entry_t table, ipc_entry_num_t size, ipc_object_t obj, mach_port_index_t index, __assert_only ipc_entry_t entry) argument 291 ipc_hash_table_delete( ipc_entry_t table, ipc_entry_num_t size, ipc_object_t obj, mach_port_index_t index, __assert_only ipc_entry_t entry) argument [all...] |
/xnu-2422.115.4/bsd/net/ |
H A D | bpf_compat.h | 74 #define malloc(size, type, canwait) _MALLOC(size, type, canwait)
|
/xnu-2422.115.4/osfmk/i386/ |
H A D | io_map.c | 72 io_map(vm_map_offset_t phys_addr, vm_size_t size, unsigned int flags) argument 81 virtual_avail += round_page(size); 83 (void) pmap_map_bd(start, phys_addr, phys_addr + round_page(size), 88 (void) kmem_alloc_pageable(kernel_map, &start, round_page(size)); 89 (void) pmap_map(start, phys_addr, phys_addr + round_page(size), 98 vm_offset_t io_map_spec(vm_map_offset_t phys_addr, vm_size_t size, unsigned int flags) argument 100 return (io_map(phys_addr, size, flags));
|
H A D | io_map_entries.h | 43 vm_size_t size, 45 extern vm_offset_t io_map_spec(vm_map_offset_t phys_addr, vm_size_t size, unsigned int flags);
|
/xnu-2422.115.4/osfmk/kern/ |
H A D | kalloc.c | 91 vm_size_t kalloc_kernmap_size; /* size of kallocs that can come from kernel map */ 140 * All allocations of size less than kalloc_max are rounded to the 142 * the zone allocator. A zone is created for each potential size 149 * kalloc_max_prerounded is the smallest allocation size, before 152 * Also if the allocation size is more than kalloc_kernmap_size 160 * size and alignment. Users of this profile would probably 241 #error missing zone size parameters for kalloc 258 * size normalized to the minimum alignment, finds the right zone index 262 #define INDEX_ZDLUT(size) \ 263 (((size) 342 vm_size_t size, kalloc_map_size; local 462 get_zone_dlut(vm_size_t size) argument 472 get_zone_search(vm_size_t size, int zindex) argument 486 kalloc_canblock( vm_size_t size, boolean_t canblock) argument 556 kalloc( vm_size_t size) argument 563 kalloc_noblock( vm_size_t size) argument 572 kfree( void *data, vm_size_t size) argument 638 kalloc_zone( vm_size_t size) argument 757 OSMalloc( uint32_t size, OSMallocTag tag) argument 780 OSMalloc_nowait( uint32_t size, OSMallocTag tag) argument 799 OSMalloc_noblock( uint32_t size, OSMallocTag tag) argument 817 OSFree( void *addr, uint32_t size, OSMallocTag tag) argument [all...] |
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 | kalloc.h | 67 extern void *kalloc(vm_size_t size); 69 extern void *kalloc_noblock(vm_size_t size); 72 vm_size_t size);
|
/xnu-2422.115.4/bsd/dev/ |
H A D | memdev.h | 11 void mdevinit(vm_offset_t base, unsigned int size);
|
/xnu-2422.115.4/bsd/libkern/ |
H A D | scanc.c | 66 scanc(u_int size, u_char *cp, const u_char table[], int mask0) argument 72 for (end = &cp[size]; cp != end && (table[*cp] & mask) == 0; ++cp);
|
H A D | skpc.c | 66 skpc(int mask0, int size, char *cp0) argument 72 for (end = &cp[size]; cp < end && *cp == mask; ++cp);
|
/xnu-2422.115.4/security/ |
H A D | mac_alloc.c | 54 mac_kalloc(vm_size_t size, int how) argument 58 return kalloc(size); 60 return kalloc_noblock(size); 66 void * mac_kalloc_noblock (vm_size_t size); 68 mac_kalloc_noblock(vm_size_t size) argument 70 return kalloc_noblock(size); 74 mac_kfree(void * data, vm_size_t size) argument 77 return kfree(data, size); 141 mac_zinit(vm_size_t size, vm_size_t maxmem, vm_size_t alloc, const char *name) argument 144 return zinit(size, maxme [all...] |
/xnu-2422.115.4/osfmk/vm/ |
H A D | vm32_user.c | 99 * are appropriate for the task's address space size. 110 vm32_size_t size, 117 result = mach_vm_allocate(map, &maddr, size, flags); 127 vm32_size_t size) 129 if ((map == VM_MAP_NULL) || (start + size < start)) 132 return mach_vm_deallocate(map, start, size); 139 vm32_size_t size, 142 if ((map == VM_MAP_NULL) || (start + size < start)) 145 return mach_vm_inherit(map, start, size, new_inheritance); 152 vm32_size_t size, 107 vm32_allocate( vm_map_t map, vm32_offset_t *addr, vm32_size_t size, int flags) argument 124 vm32_deallocate( vm_map_t map, vm32_offset_t start, vm32_size_t size) argument 136 vm32_inherit( vm_map_t map, vm32_offset_t start, vm32_size_t size, vm_inherit_t new_inheritance) argument 149 vm32_protect( vm_map_t map, vm32_offset_t start, vm32_size_t size, boolean_t set_maximum, vm_prot_t new_protection) argument 163 vm32_machine_attribute( vm_map_t map, vm32_address_t addr, vm32_size_t size, vm_machine_attribute_t attribute, vm_machine_attribute_val_t* value) argument 177 vm32_read( vm_map_t map, vm32_address_t addr, vm32_size_t size, pointer_t *data, mach_msg_type_number_t *data_size) argument 213 vm32_read_overwrite( vm_map_t map, vm32_address_t address, vm32_size_t size, vm32_address_t data, vm32_size_t *data_size) argument 231 vm32_write( vm_map_t map, vm32_address_t address, pointer_t data, mach_msg_type_number_t size) argument 241 vm32_copy( vm_map_t map, vm32_address_t source_address, vm32_size_t size, vm32_address_t dest_address) argument 251 vm32_map_64( vm_map_t target_map, vm32_offset_t *address, vm32_size_t size, vm32_offset_t mask, int flags, ipc_port_t port, vm_object_offset_t offset, boolean_t copy, vm_prot_t cur_protection, vm_prot_t max_protection, vm_inherit_t inheritance) argument 277 vm32_map( vm_map_t target_map, vm32_offset_t *address, vm32_size_t size, vm32_offset_t mask, int flags, ipc_port_t port, vm32_offset_t offset, boolean_t copy, vm_prot_t cur_protection, vm_prot_t max_protection, vm_inherit_t inheritance) argument 296 vm32_remap( vm_map_t target_map, vm32_offset_t *address, vm32_size_t size, vm32_offset_t mask, boolean_t anywhere, vm_map_t src_map, vm32_offset_t memory_address, boolean_t copy, vm_prot_t *cur_protection, vm_prot_t *max_protection, vm_inherit_t inheritance) argument 322 vm32_msync( vm_map_t map, vm32_address_t address, vm32_size_t size, vm_sync_t sync_flags) argument 332 vm32_behavior_set( vm_map_t map, vm32_offset_t start, vm32_size_t size, vm_behavior_t new_behavior) argument 345 vm32_region_64( vm_map_t map, vm32_offset_t *address, vm32_size_t *size, vm_region_flavor_t flavor, vm_region_info_t info, mach_msg_type_number_t *count, mach_port_t *object_name) argument 368 vm32_region( vm_map_t map, vm32_address_t *address, vm32_size_t *size, vm_region_flavor_t flavor, vm_region_info_t info, mach_msg_type_number_t *count, mach_port_t *object_name) argument 401 vm32_region_recurse_64( vm_map_t map, vm32_address_t *address, vm32_size_t *size, uint32_t *depth, vm_region_recurse_info_64_t info, mach_msg_type_number_t *infoCnt) argument 423 vm32_region_recurse( vm_map_t map, vm32_offset_t *address, vm32_size_t *size, natural_t *depth, vm_region_recurse_info_t info32, mach_msg_type_number_t *infoCnt) argument 510 vm32_make_memory_entry_64( vm_map_t target_map, memory_object_size_t *size, memory_object_offset_t offset, vm_prot_t permission, ipc_port_t *object_handle, ipc_port_t parent_handle) argument 523 vm32_make_memory_entry( vm_map_t target_map, vm32_size_t *size, vm32_offset_t offset, vm_prot_t permission, ipc_port_t *object_handle, ipc_port_t parent_entry) argument [all...] |
H A D | vm_kern.h | 78 vm_size_t size, 98 vm_size_t size, 107 vm_size_t size); 112 vm_size_t size); 117 vm_size_t size); 129 vm_size_t size); 134 vm_size_t size, 143 vm_size_t size); 148 vm_size_t size, 153 vm_size_t size, [all...] |
/xnu-2422.115.4/tools/tests/superpages/ |
H A D | testsp.c | 85 check_r(mach_vm_address_t addr, mach_vm_size_t size, int *res) { argument 94 for (i=0; i<size; i++) 105 check_nr(mach_vm_address_t addr, mach_vm_size_t size, int *res) { argument 108 for (i=0; i<size/PAGE_SIZE; i++) { 118 check_w(mach_vm_address_t addr, mach_vm_size_t size) { argument 127 for (i=0; i<size; i++) 134 check_nw(mach_vm_address_t addr, mach_vm_size_t size) { argument 138 for (i=0; i<size/PAGE_SIZE; i++) { 148 check_rw(mach_vm_address_t addr, mach_vm_size_t size) { argument 151 if (!(ret = check_w(addr, size))) retur 194 mach_vm_size_t size = SUPERPAGE_SIZE; local 221 mach_vm_size_t size = 2*PAGE_SIZE; /* will be rounded up to some superpage size */ local 247 mach_vm_size_t size = SUPERPAGE_SIZE; local 268 mach_vm_size_t size = SUPERPAGE_SIZE; local 288 mach_vm_size_t size = PAGE_SIZE; /* != 2 MB */ local 309 mach_vm_size_t size = SUPERPAGE_SIZE; local 326 mach_vm_size_t size = SUPERPAGE_SIZE; local 340 mach_vm_deallocate(mach_task_self(), addr, size); local 359 mach_vm_size_t size = SUPERPAGE_SIZE; local 388 mach_vm_size_t size = SUPERPAGE_SIZE; local 418 mach_vm_size_t size = SUPERPAGE_SIZE; local 446 mach_vm_size_t size = SUPERPAGE_SIZE; local 471 mach_vm_size_t size = SUPERPAGE_SIZE; local 506 mach_vm_size_t size = SUPERPAGE_SIZE; local 557 int size = SUPERPAGE_SIZE; local 581 mach_vm_size_t size = SUPERPAGE_SIZE; local [all...] |
/xnu-2422.115.4/bsd/sys/ |
H A D | kas_info.h | 49 int kas_info(int selector, void *value, size_t *size) __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
|
H A D | xattr.h | 69 /* Maximum extended attribute size supported by VFS */ 73 /* Maximum extended attribute size in an Apple Double file */ 76 /* Number of bits used to represent the maximum size of 88 ssize_t getxattr(const char *path, const char *name, void *value, size_t size, u_int32_t position, int options); 90 ssize_t fgetxattr(int fd, const char *name, void *value, size_t size, u_int32_t position, int options); 92 int setxattr(const char *path, const char *name, const void *value, size_t size, u_int32_t position, int options); 94 int fsetxattr(int fd, const char *name, const void *value, size_t size, u_int32_t position, int options); 100 ssize_t listxattr(const char *path, char *namebuff, size_t size, int options); 102 ssize_t flistxattr(int fd, char *namebuff, size_t size, int options);
|
/xnu-2422.115.4/libkern/libkern/ |
H A D | OSMalloc.h | 123 * with this attribute allocates blocks of a full page size or larger 125 * and blocks smaller than a full page size in wired memory. 153 * allocations of a full page size or greater are pageable; 187 * @param size The size of the memory block to allocate. 197 * attribute <i>and</i> <code>size</code> 202 uint32_t size, 213 uint32_t size, 225 * @param size The size o [all...] |
/xnu-2422.115.4/libkern/kxld/ |
H A D | kxld_util.c | 131 kxld_alloc(size_t size) argument 136 ptr = kalloc(size); 138 ptr = malloc(size); 144 bytes_allocated += size; 154 kxld_page_alloc_untracked(size_t size) argument 162 size = round_page(size); 165 if (size < KALLOC_MAX) { 166 ptr = kalloc(size); 168 rval = kmem_alloc(kernel_map, &addr, size); 181 kxld_page_alloc(size_t size) argument 199 kxld_alloc_pageable(size_t size) argument 255 kxld_page_free(void *ptr, size_t size) argument 635 u_int size = 0; local 691 u_int size = 0; local [all...] |