1KMEM_CACHE_DESTROY(9)     Memory Management in Linux     KMEM_CACHE_DESTROY(9)
2
3
4

NAME

6       kmem_cache_destroy - delete a cache
7

SYNOPSIS

9       void kmem_cache_destroy(struct kmem_cache * cachep);
10

ARGUMENTS

12       cachep
13           the cache to destroy
14

DESCRIPTION

16       Remove a struct kmem_cache object from the slab cache.
17
18       It is expected this function will be called by a module when it is
19       unloaded. This will remove the cache completely, and avoid a duplicate
20       cache being allocated each time a module is loaded and unloaded, if the
21       module doesn't have persistent in-kernel storage across loads and
22       unloads.
23
24       The cache must be empty before calling this function.
25
26       The caller must guarantee that noone will allocate memory from the
27       cache during the kmem_cache_destroy.
28
30Kernel Hackers Manual 2.6.       November 2011           KMEM_CACHE_DESTROY(9)
Impressum