patch-2.4.0-test6 linux/include/linux/slab.h
Next file: linux/include/linux/spinlock.h
Previous file: linux/include/linux/sched.h
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Wed Aug 9 18:57:55 2000
- Orig file:
v2.4.0-test5/linux/include/linux/slab.h
- Orig date:
Thu Jul 27 17:38:02 2000
diff -u --recursive --new-file v2.4.0-test5/linux/include/linux/slab.h linux/include/linux/slab.h
@@ -11,6 +11,7 @@
typedef struct kmem_cache_s kmem_cache_t;
+#include <linux/config.h>
#include <linux/mm.h>
#include <linux/cache.h>
@@ -45,7 +46,6 @@
/* prototypes */
extern void kmem_cache_init(void);
extern void kmem_cache_sizes_init(void);
-extern void kmem_cpucache_init(void);
extern kmem_cache_t *kmem_find_general_cachep(size_t, int gfpflags);
extern kmem_cache_t *kmem_cache_create(const char *, size_t, size_t, unsigned long,
@@ -73,6 +73,14 @@
extern kmem_cache_t *filp_cachep;
extern kmem_cache_t *dquot_cachep;
extern kmem_cache_t *bh_cachep;
+
+#ifdef CONFIG_SMP
+extern unsigned long slab_cache_drain_mask;
+extern void slab_drain_local_cache(void);
+#else
+#define slab_cache_drain_mask 0
+#define slab_drain_local_cache() do { } while (0)
+#endif
#endif /* __KERNEL__ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)