|
|
| File: [Development] / linux-2.4-xfs / include / linux / cache_def.h (download)
Revision 1.1, Mon May 3 07:32:10 2004 UTC (13 years, 5 months ago) by nathans
Generic cache shrink infrastructure for 2.4, as used in Redhat/Suse/others |
/*
* linux/cache_def.h
* Handling of caches defined in drivers, filesystems, ...
*
* Copyright (C) 2002 by Andreas Gruenbacher, <a.gruenbacher@computer.org>
*/
struct cache_definition {
const char *name;
int (*shrink)(int, unsigned int);
struct list_head link;
};
extern void register_cache(struct cache_definition *);
extern void unregister_cache(struct cache_definition *);
extern void shrink_slab_caches(int, unsigned int);