Searched refs:chunks (Results 1 - 4 of 4) sorted by relevance

/xnu-2422.115.4/tools/tests/unit_tests/cpu_monitor_tests_11646922_src/mem_hog/
H A Dmem_hog.c41 void **chunks; local
137 printf("consuming memory in chunks of %d MB every %d milliseconds.\n", chunk_size, interval);
143 * Estimate max number of chunks possible, using 4GB as absolute max amount of memory
147 if ((chunks = calloc(max_chunks, sizeof (*chunks))) == NULL) {
154 if ((chunks[nchunks] = malloc(chunk_size * 1024 * 1024)) == NULL) {
161 dirty_chunk(chunks[nchunks], chunk_size);
188 dirty_chunk(chunks[i], chunk_size);
195 * most recent three chunks and go round again.
198 free(chunks[nchunk
[all...]
/xnu-2422.115.4/security/
H A Dmac_internal.h112 u_int chunks; member in struct:mac_policy_list
H A Dmac_base.c492 mac_policy_list.chunks = 1;
809 MAC_POLICY_LIST_CHUNKSIZE) * (mac_policy_list.chunks + 1));
817 MAC_POLICY_LIST_CHUNKSIZE * mac_policy_list.chunks);
822 MAC_POLICY_LIST_CHUNKSIZE * mac_policy_list.chunks);
828 mac_policy_list.chunks++;
/xnu-2422.115.4/bsd/kern/
H A Duipc_mbuf.c361 * chunks; the available chunks are chained in the slab's freelist (sl_head).
363 * gets incremented. When all chunks have been taken out, the empty slab
369 * Compartmentalizing of the object chunks into slabs allows us to easily
375 * A slab may also span across multiple clusters for chunks larger than
386 int8_t sl_chunks; /* chunks (bufs) in this slab */
1646 * more than one buffer chunks (e.g. mbuf slabs). For other
2702 * If we did ask for "n" 16KB physically contiguous chunks
6264 void *base, void *head, unsigned int len, int refcnt, int chunks)
6272 sp->sl_chunks = chunks;
6263 slab_init(mcl_slab_t *sp, mbuf_class_t class, u_int32_t flags, void *base, void *head, unsigned int len, int refcnt, int chunks) argument
[all...]

Completed in 41 milliseconds