Lines Matching refs:mi
14 struct mallinfo mi;
17 mi = mallinfo();
21 printf("arena = %d\n", mi.arena); /* non-mmapped space allocated from system */
22 printf("ordblks = %d\n", mi.ordblks); /* number of free chunks */
23 printf("smblks = %d\n", mi.smblks); /* number of fastbin blocks */
24 printf("hblks = %d\n", mi.hblks); /* number of mmapped regions */
25 printf("hblkhd = %d\n", mi.hblkhd); /* space in mmapped regions */
26 printf("usmblks = %d\n", mi.usmblks); /* maximum total allocated space */
27 printf("fsmblks = %d\n", mi.fsmblks); /* space available in freed fastbin blocks */
28 printf("uordblks = %d\n", mi.uordblks); /* total allocated space */
29 printf("fordblks = %d\n", mi.fordblks); /* total free space */
30 printf("keepcost = %d\n", mi.keepcost); /* top-most, releasable (via malloc_trim) space */
36 used = mi.uordblks + mi.hblkhd;
49 if ((mi.ordblks == 0) != (mi.fordblks == 0))
52 if ((mi.smblks == 0) != (mi.fsmblks == 0))
55 if ((mi.hblks == 0) != (mi.hblkhd == 0))
58 if (mi.keepcost > mi.fordblks)
61 if (mi.fsmblks > mi.fordblks)
65 if (mi.arena < mi.fordblks + mi.uordblks)
68 if (mi.arena/5*4 > mi.fordblks + mi.uordblks)