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

Function test_alloc_unr

freebsd/kern/subr_unit.c:971–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969}
970
971static void
972test_alloc_unr(struct unrhdr *uh, u_int i, char a[])
973{
974 int j;
975
976 if (a[i]) {
977 VPRINTF("F %u\n", i);
978 free_unr(uh, i);
979 a[i] = 0;
980 } else {
981 no_alloc = 1;
982 j = alloc_unr(uh);
983 if (j != -1) {
984 a[j] = 1;
985 VPRINTF("A %d\n", j);
986 }
987 no_alloc = 0;
988 }
989}
990
991static void
992test_alloc_unr_specific(struct unrhdr *uh, u_int i, char a[])

Callers 1

mainFunction · 0.85

Calls 2

free_unrFunction · 0.85
alloc_unrFunction · 0.85

Tested by

no test coverage detected