Home
last modified time | relevance | path

Searched refs:allocSize (Results 1 – 8 of 8) sorted by relevance

/xnu-11215/tests/
H A Dtest_sysctl_kern_procargs_25397314.m36 static procargs_t getProcArgs(int type, pid_t pid, size_t allocSize)
53 T_LOG("Get proc args for pid %d, allocSize %lu with %s", pid, allocSize, name);
58 /* Determine how much memory to allocate. If allocSize is 0 we will use the size
63 if (allocSize == 0) {
64 allocSize = preflightSize;
67 buffer = malloc(allocSize);
68 T_QUIET; T_ASSERT_NOTNULL(buffer, "malloc buffer of size %lu", allocSize);
69 bufferSize = allocSize;
72 T_ASSERT_LE(bufferSize, allocSize, "returned buffer size should be less than allocated size");
74 if (allocSize >= bufferSize) {
/xnu-11215/iokit/Kernel/
H A DIODataQueue.cpp92 vm_size_t allocSize = 0; in initWithCapacity() local
103 allocSize = round_page(size + DATA_QUEUE_MEMORY_HEADER_SIZE); in initWithCapacity()
105 if (allocSize < size) { in initWithCapacity()
113 kr = kmem_alloc(kernel_map, (vm_offset_t *)&dataQueue, allocSize, in initWithCapacity()
H A DIOSharedDataQueue.cpp83 vm_size_t allocSize; in initWithCapacity() local
99 allocSize = round_page(size + DATA_QUEUE_MEMORY_HEADER_SIZE + DATA_QUEUE_MEMORY_APPENDIX_SIZE); in initWithCapacity()
101 if (allocSize < size) { in initWithCapacity()
105 kr = kmem_alloc(kernel_map, (vm_offset_t *)&dataQueue, allocSize, in initWithCapacity()
H A DIOLib.cpp300 vm_size_t allocSize; variable
302 allocSize = size + sizeofIOLibMallocHeader;
304 if (sizeofIOLibMallocHeader && (allocSize <= size)) {
308 address = kheap_alloc(kheap, allocSize,
1122 vm_size_t allocSize = size; in IOMallocPageableInternal() local
1123 if (allocSize == 0) { in IOMallocPageableInternal()
1124 allocSize = 1; in IOMallocPageableInternal()
1126 addr = IOMallocPageablePages(allocSize, alignment, IOMemoryTag(kernel_map)); in IOMallocPageableInternal()
H A DIOKitDebug.cpp248 size_t allocSize; member
351 size_t allocSize, size_t minCaptureSize, in IOTrackingQueueAlloc() argument
363 queue->allocSize = allocSize; in IOTrackingQueueAlloc()
1055 origsize = size = instance->site->queue->allocSize; in IOTrackingLeakScan()
/xnu-11215/iokit/IOKit/
H A DIOKitDebug.h286 size_t allocSize, size_t minCaptureSize,
/xnu-11215/bsd/kern/
H A Ddecmpfs.c2055 size_t allocSize = 0;
2135 allocSize = MIN(64 * 1024, (size_t)toSize);
2136 data = (char *)kalloc_data(allocSize, Z_WAITOK);
2161 decmpfs_vector vec = { .buf = data, .size = (user_ssize_t)MIN(allocSize, remaining) };
2253 kfree_data(data, allocSize);
/xnu-11215/libkern/c++/
H A DOSKext.cpp3776 uint32_t allocSize = (uint32_t)allocSize64; in z_alloc() local
3778 zmem = (z_mem *)kalloc_data_tag(allocSize, Z_WAITOK, in z_alloc()
3783 zmem->alloc_size = allocSize; in z_alloc()