Home
last modified time | relevance | path

Searched refs:kalloc (Results 1 – 21 of 21) sorted by relevance

/xnu-8019.80.24/doc/
H A Dallocators.md14 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 Dstartup.md167 - `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 Dzalloc.iso31 (T)kalloc(E) <=> kalloc(E)
64 kalloc(E) <=> kalloc_flags(E, Z_WAITOK)
H A Dzalloc-zero.cocci33 - E = kalloc(F);
64 - T V = kalloc(F);
H A Dzalloc-nofail.cocci36 - E = kalloc(sizeof(F));
61 - T V = kalloc(sizeof(F));
/xnu-8019.80.24/san/memory/
H A Dkasan-test.c103 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 Dkasan.c469 SYSCTL_COMPAT_UINT(_kern_kasan, OID_AUTO, kalloc, CTLFLAG_RD, NULL, KASAN_KALLOC, "");
/xnu-8019.80.24/tests/
H A Dkalloc.c30 T_DECL(kalloc, "kalloc_test",
/xnu-8019.80.24/osfmk/kern/
H A Dkalloc.h322 #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 Dmach_node.h135 #define MACH_NODE_ALLOC() ((mach_node_t)kalloc(MACH_NODE_SIZE))
H A DMakefile58 kalloc.h \
H A Dkalloc.c281 #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 Dmach_node.c583 mnl_msg_t msg = kalloc(MNL_MSG_SIZE + payload); in mnl_msg_alloc()
H A Dturnstile.c3361 …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 Dcopyio_tests.c498 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 DDiagnostics.c324 unsigned *ptr = (unsigned *)kalloc(1024); in diagCall64()
/xnu-8019.80.24/pexpert/arm/
H A Dpe_init.c759 new_data = kalloc(width * height * scale * scale); in pe_prepare_images()
/xnu-8019.80.24/osfmk/tests/
H A Dkernel_tests.c661 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 DMakefile.template235 kalloc.o_CWARNFLAGS_ADD += -Wno-sign-conversion
H A Dfiles144 osfmk/kern/kalloc.c standard
/xnu-8019.80.24/osfmk/vm/
H A Dvm_pageout.c5242 upl = (upl_t)kalloc(upl_size + page_field_size); in upl_create()