patch-1.3.22 linux/include/linux/malloc.h
Next file: linux/include/linux/mcd.h
Previous file: linux/include/linux/major.h
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Fri Sep 1 14:39:39 1995
- Orig file:
v1.3.21/linux/include/linux/malloc.h
- Orig date:
Mon Jan 23 23:04:10 1995
diff -u --recursive --new-file v1.3.21/linux/include/linux/malloc.h linux/include/linux/malloc.h
@@ -1,31 +1,11 @@
#ifndef _LINUX_MALLOC_H
#define _LINUX_MALLOC_H
-#include <linux/config.h>
#include <linux/mm.h>
-#ifdef CONFIG_DEBUG_MALLOC
-#define kmalloc(a,b) deb_kmalloc(__FILE__,__LINE__,a,b)
-#define kfree_s(a,b) deb_kfree_s(__FILE__,__LINE__,a,b)
-
-void *deb_kmalloc(const char *deb_file, unsigned short deb_line,unsigned int size, int priority);
-void deb_kfree_s (const char *deb_file, unsigned short deb_line,void * obj, int size);
-void deb_kcheck_s(const char *deb_file, unsigned short deb_line,void * obj, int size);
-
-#define kfree(a) deb_kfree_s(__FILE__,__LINE__, a,0)
-#define kcheck(a) deb_kcheck_s(__FILE__,__LINE__, a,0)
-#define kcheck_s(a,b) deb_kcheck_s(__FILE__,__LINE__, a,b)
-
-#else /* !debug */
-
void * kmalloc(unsigned int size, int priority);
-void kfree_s(void * obj, int size);
-
-#define kcheck_s(a,b) 0
-
-#define kfree(x) kfree_s((x), 0)
-#define kcheck(x) kcheck_s((x), 0)
+void kfree(void * obj);
-#endif
+#define kfree_s(a,b) kfree(a)
#endif /* _LINUX_MALLOC_H */
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]
with Sam's (original) version of this