patch-2.1.112 linux/include/linux/simp.h
Next file: linux/include/linux/skbuff.h
Previous file: linux/include/linux/selection.h
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Wed Dec 31 16:00:00 1969
- Orig file:
v2.1.111/linux/include/linux/simp.h
- Orig date:
Wed Jul 16 19:22:51 1997
diff -u --recursive --new-file v2.1.111/linux/include/linux/simp.h linux/include/linux/simp.h
@@ -1,39 +0,0 @@
-/*
- * include/linux/simp.h -- simple allocator for cached objects
- *
- * This is meant as a faster and simpler (not full-featured) replacement
- * for SLAB, thus the name "simp" :-)
- *
- * (C) 1997 Thomas Schoebel-Theuer
- */
-
-#ifndef SIMP_H
-#define SIMP_H
-
-/* used for constructors / destructors */
-typedef void (*structor)(void *);
-
-/* create an object cache */
-/* positive clearable_offset means the next two pointers at that offset
- * can be internally used for freelist pointers when the object is
- * deallocated / not in use;
- * if there is no space inside the element that can be reused for
- * this purpose, supply -1. Using positive offsets is essential for
- * saving space with very small-sized objects.
- *
- * Note for big-sized objects in the range of whole pages, use
- * the fast Linux page allocator instead, directly.
- */
-extern struct simp * simp_create(char * name, long size,
- structor first_ctor,
- structor again_ctor,
- structor dtor);
-
-/* alloc / dealloc routines */
-extern void * simp_alloc(struct simp * simp);
-extern void simp_free(void * objp);
-
-/* garbage collection */
-extern long simp_garbage(void);
-
-#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov