MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ztest_lr_alloc

Function ztest_lr_alloc

freebsd/contrib/openzfs/cmd/ztest/ztest.c:2361–2373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2359}
2360
2361static void *
2362ztest_lr_alloc(size_t lrsize, char *name)
2363{
2364 char *lr;
2365 size_t namesize = name ? strlen(name) + 1 : 0;
2366
2367 lr = umem_zalloc(lrsize + namesize, UMEM_NOFAIL);
2368
2369 if (name)
2370 bcopy(name, lr + lrsize, namesize);
2371
2372 return (lr);
2373}
2374
2375static void
2376ztest_lr_free(void *lr, size_t lrsize, char *name)

Callers 5

ztest_createFunction · 0.85
ztest_removeFunction · 0.85
ztest_writeFunction · 0.85
ztest_truncateFunction · 0.85
ztest_setattrFunction · 0.85

Calls 1

umem_zallocFunction · 0.85

Tested by

no test coverage detected