Lines Matching defs:mbstat
52 struct mbstat mbstat;
81 int nmbtypes = sizeof(mbstat.m_mtypes) / sizeof(u_long);
98 "%s: unexpected change to mbstat; check source\n",
115 size = sizeof(mbstat);
117 if (sysctl(mib, 2, &mbstat, &size, NULL, 0) == -1) {
170 totmbufs += (unsigned int)mbstat.m_mtypes[mp->mt_type];
173 if (mbstat.m_mtypes[mp->mt_type]) {
176 mbstat.m_mtypes[mp->mt_type],
177 plural(mbstat.m_mtypes[mp->mt_type]),
182 if (!seen[i] && mbstat.m_mtypes[i]) {
184 mbstat.m_mtypes[i],
185 plural(mbstat.m_mtypes[i]), i);
205 printf("%lu requests for memory denied\n", mbstat.m_drops);
206 printf("%lu requests for memory delayed\n", mbstat.m_wait);
207 printf("%lu calls to protocol drain routines\n", mbstat.m_drain);
208 printf("%lu defrag mbuf allocation\n", mbstat.m_defrag_alloc);
209 printf("%lu prepend mbuf allocation\n", mbstat.m_prepend_alloc);
210 printf("%lu pullup mbuf allocation\n", mbstat.m_pullup_alloc);
211 printf("%lu pullup memory copy\n", mbstat.m_pullup_copy);
212 printf("%lu pulldown mbuf allocation\n", mbstat.m_pulldown_alloc);
213 printf("%lu pulldown memory copy\n", mbstat.m_pulldown_copy);