Deleted Added
full compact
malloc.h (1542) malloc.h (1549)
1/*
2 * Copyright (c) 1987, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 93 unchanged lines hidden (view full) ---

102#define M_NFSD 52 /* Nfs server daemon structure */
103#define M_IPMOPTS 53 /* internet multicast options */
104#define M_IPMADDR 54 /* internet multicast address */
105#define M_IFMADDR 55 /* link-level multicast address */
106#define M_MRTABLE 56 /* multicast routing tables */
107#define M_ISOFSMNT 57 /* ISOFS mount structure */
108#define M_ISOFSNODE 58 /* ISOFS vnode private part */
109#define M_TEMP 74 /* misc temporary data buffers */
1/*
2 * Copyright (c) 1987, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 93 unchanged lines hidden (view full) ---

102#define M_NFSD 52 /* Nfs server daemon structure */
103#define M_IPMOPTS 53 /* internet multicast options */
104#define M_IPMADDR 54 /* internet multicast address */
105#define M_IFMADDR 55 /* link-level multicast address */
106#define M_MRTABLE 56 /* multicast routing tables */
107#define M_ISOFSMNT 57 /* ISOFS mount structure */
108#define M_ISOFSNODE 58 /* ISOFS vnode private part */
109#define M_TEMP 74 /* misc temporary data buffers */
110#define M_LAST 75 /* Must be last type + 1 */
110#define M_TTYS 75 /* tty data structures */
111#define M_LAST 76 /* Must be last type + 1 */
111
112#define INITKMEMNAMES { \
113 "free", /* 0 M_FREE */ \
114 "mbuf", /* 1 M_MBUF */ \
115 "devbuf", /* 2 M_DEVBUF */ \
116 "socket", /* 3 M_SOCKET */ \
117 "pcb", /* 4 M_PCB */ \
118 "routetbl", /* 5 M_RTABLE */ \

--- 49 unchanged lines hidden (view full) ---

168 "ether_multi", /* 55 M_IFMADDR */ \
169 "mrt", /* 56 M_MRTABLE */ \
170 "ISOFS mount", /* 57 M_ISOFSMNT */ \
171 "ISOFS node", /* 58 M_ISOFSNODE */ \
172 NULL, NULL, NULL, NULL, NULL, \
173 NULL, NULL, NULL, NULL, NULL, \
174 NULL, NULL, NULL, NULL, NULL, \
175 "temp", /* 74 M_TEMP */ \
112
113#define INITKMEMNAMES { \
114 "free", /* 0 M_FREE */ \
115 "mbuf", /* 1 M_MBUF */ \
116 "devbuf", /* 2 M_DEVBUF */ \
117 "socket", /* 3 M_SOCKET */ \
118 "pcb", /* 4 M_PCB */ \
119 "routetbl", /* 5 M_RTABLE */ \

--- 49 unchanged lines hidden (view full) ---

169 "ether_multi", /* 55 M_IFMADDR */ \
170 "mrt", /* 56 M_MRTABLE */ \
171 "ISOFS mount", /* 57 M_ISOFSMNT */ \
172 "ISOFS node", /* 58 M_ISOFSNODE */ \
173 NULL, NULL, NULL, NULL, NULL, \
174 NULL, NULL, NULL, NULL, NULL, \
175 NULL, NULL, NULL, NULL, NULL, \
176 "temp", /* 74 M_TEMP */ \
177 "ttys", /* 75 M_TTYS */ \
176}
177
178struct kmemstats {
179 long ks_inuse; /* # of packets of this type currently in use */
180 long ks_calls; /* total packets of this type ever allocated */
181 long ks_memuse; /* total memory held in bytes */
182 u_short ks_limblocks; /* number of times blocked for hitting limit */
183 u_short ks_mapblocks; /* number of times blocked for kernel map */

--- 123 unchanged lines hidden ---
178}
179
180struct kmemstats {
181 long ks_inuse; /* # of packets of this type currently in use */
182 long ks_calls; /* total packets of this type ever allocated */
183 long ks_memuse; /* total memory held in bytes */
184 u_short ks_limblocks; /* number of times blocked for hitting limit */
185 u_short ks_mapblocks; /* number of times blocked for kernel map */

--- 123 unchanged lines hidden ---