MCPcopy Create free account
hub / github.com/axboe/liburing / t_calloc

Function t_calloc

test/helpers.c:66–72  ·  view source on GitHub ↗

* Helper for allocating space for an array of nmemb elements * with size bytes for each element. */

Source from the content-addressed store, hash-verified

64 * with size bytes for each element.
65 */
66void *t_calloc(size_t nmemb, size_t size)
67{
68 void *ret;
69 ret = calloc(nmemb, size);
70 assert(ret);
71 return ret;
72}
73
74/*
75 * Helper for creating file and write @size byte buf with 0xaa value in the file.

Callers 12

test_accept_manyFunction · 0.85
has_nonvec_readFunction · 0.85
open_filesFunction · 0.85
init_splice_ctxFunction · 0.85
has_nonvec_readFunction · 0.85
open_filesFunction · 0.85
test_removalsFunction · 0.85
mainFunction · 0.85
probe_zc_supportFunction · 0.85
has_nonvec_readFunction · 0.85
probe_supportFunction · 0.85
test_probeFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_accept_manyFunction · 0.68
test_removalsFunction · 0.68
test_probeFunction · 0.68