| /xnu-8019.80.24/doc/ |
| H A D | allocators.md | 14 In addition to that, `<kern/kalloc.h>` provides a variable-size general purpose 21 - `<kern/zalloc.h>` and `<kern/kalloc.h>` for its API surface, which most 48 3. In general we prefer zalloc or kalloc interfaces, and would like to abandon 55 For all `kalloc` or `kheap_alloc` variants, these advices apply: 89 `zalloc` and `kalloc` are considered the primitive allocation interfaces which 120 This is the true core implementation of `kalloc`, see documentation about 121 kalloc heaps. 125 <th>kalloc</th> 130 In XNU, `kalloc` is equivalent to `kheap_alloc(KHEAP_DEFAULT)`. 132 In kernel extensions, `kalloc` is equivalent to `kheap_alloc(KHEAP_KEXT)`. [all …]
|
| H A D | startup.md | 167 - `ZONE_VIEW_DEFINE`, `KALLOC_HEAP_DEFINE`: zone and kalloc heap views. 182 - Rank 3: Initialize kalloc. 184 - Rank 4: Enable zone caching (uses kalloc) 186 - Middle: for any initialization that only requires kalloc/zalloc 189 - Last: zone and kalloc heaps (`ZONE_VIEW_DEFINE`, `KALLOC_HEAP_DEFINE`).
|
| /xnu-8019.80.24/tools/cocci/ |
| H A D | zalloc.iso | 31 (T)kalloc(E) <=> kalloc(E) 64 kalloc(E) <=> kalloc_flags(E, Z_WAITOK)
|
| H A D | zalloc-zero.cocci | 33 - E = kalloc(F); 64 - T V = kalloc(F);
|
| H A D | zalloc-nofail.cocci | 36 - E = kalloc(sizeof(F)); 61 - T V = kalloc(sizeof(F));
|
| /xnu-8019.80.24/san/memory/ |
| H A D | kasan-test.c | 103 uint8_t *x = kalloc(BUFSZ); in test_heap_underflow() 116 uint8_t *x = kalloc(BUFSZ); in test_heap_overflow() 129 uint8_t *x = kalloc(LBUFSZ); in test_heap_uaf() 152 uint8_t *x = kalloc(BUFSZ); in test_heap_double_free() 169 uint8_t *x = kalloc(BUFSZ); in test_heap_small_free() 316 a1 = kalloc(STACK_ARRAY_SZ); in test_memcmp() 320 a2 = kalloc(STACK_ARRAY_SZ + 1); in test_memcmp() 346 a1 = kalloc(STACK_ARRAY_SZ); in test_bcmp() 350 a2 = kalloc(STACK_ARRAY_SZ + 1); in test_bcmp()
|
| H A D | kasan.c | 469 SYSCTL_COMPAT_UINT(_kern_kasan, OID_AUTO, kalloc, CTLFLAG_RD, NULL, KASAN_KALLOC, "");
|
| /xnu-8019.80.24/tests/ |
| H A D | kalloc.c | 30 T_DECL(kalloc, "kalloc_test",
|
| /xnu-8019.80.24/osfmk/kern/ |
| H A D | kalloc.h | 322 #define kalloc(size) \ macro 430 kalloc( 605 ((type *)kalloc(kt_size(0, sizeof(type), count)); \ 610 ((hdr_ty *)kalloc(kt_size(sizeof(hdr_ty), sizeof(e_ty), count))); \
|
| H A D | mach_node.h | 135 #define MACH_NODE_ALLOC() ((mach_node_t)kalloc(MACH_NODE_SIZE))
|
| H A D | Makefile | 58 kalloc.h \
|
| H A D | kalloc.c | 281 #error missing or invalid zone size parameters for kalloc 1564 #pragma mark kalloc 1676 DTRACE_VM3(kalloc, vm_size_t, size, vm_size_t, req_size, void*, addr); in kalloc_large() 1739 DTRACE_VM3(kalloc, vm_size_t, size, vm_size_t, req_size, void*, addr); in kalloc_ext() 2841 data_ptr = kalloc(alloc_size); in run_kalloc_test() 2880 data_ptr = kalloc(alloc_size); in run_kalloc_test() 2891 SYSCTL_TEST_REGISTER(kalloc, run_kalloc_test);
|
| H A D | mach_node.c | 583 mnl_msg_t msg = kalloc(MNL_MSG_SIZE + payload); in mnl_msg_alloc()
|
| H A D | turnstile.c | 3361 …struct tstile_test_prim *test_prim = (struct tstile_test_prim *) kalloc(sizeof(struct tstile_test_… in tstile_test_prim_init()
|
| /xnu-8019.80.24/bsd/tests/ |
| H A D | copyio_tests.c | 498 data.buf1 = kalloc(copyio_test_buf_size); in copyio_test() 499 data.buf2 = kalloc(copyio_test_buf_size); in copyio_test()
|
| /xnu-8019.80.24/osfmk/i386/ |
| H A D | Diagnostics.c | 324 unsigned *ptr = (unsigned *)kalloc(1024); in diagCall64()
|
| /xnu-8019.80.24/pexpert/arm/ |
| H A D | pe_init.c | 759 new_data = kalloc(width * height * scale * scale); in pe_prepare_images()
|
| /xnu-8019.80.24/osfmk/tests/ |
| H A D | kernel_tests.c | 661 mach_vm_address_t address = (mach_vm_address_t)kalloc(PAGE_SIZE); in kcdata_api_test() 1011 info->threads = kalloc(sizeof(thread_t) * nthreads); in init_synch_test_common() 2659 buf = kalloc(buf_size); in ts_kernel_timingsafe_bcmp_test()
|
| /xnu-8019.80.24/osfmk/conf/ |
| H A D | Makefile.template | 235 kalloc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
|
| H A D | files | 144 osfmk/kern/kalloc.c standard
|
| /xnu-8019.80.24/osfmk/vm/ |
| H A D | vm_pageout.c | 5242 upl = (upl_t)kalloc(upl_size + page_field_size); in upl_create()
|