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

Function test_alloc_unr_specific

freebsd/kern/subr_unit.c:991–1005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989}
990
991static void
992test_alloc_unr_specific(struct unrhdr *uh, u_int i, char a[])
993{
994 int j;
995
996 j = alloc_unr_specific(uh, i);
997 if (j == -1) {
998 VPRINTF("F %u\n", i);
999 a[i] = 0;
1000 free_unr(uh, i);
1001 } else {
1002 a[i] = 1;
1003 VPRINTF("A %d\n", j);
1004 }
1005}
1006
1007static void
1008usage(char** argv)

Callers 1

mainFunction · 0.85

Calls 2

alloc_unr_specificFunction · 0.85
free_unrFunction · 0.85

Tested by

no test coverage detected