I 'm writing a code to traverse all allocated slabs. First I traverse cache list through "cache_chain". my code is:
struct list_head cache_chain, *p;
list_for_each(p, &cache_chain){
    kmem_cache_t *cachep=list_entry(p, struct kmem_cache_t, next); 
but when compiling I receive following errors:
error: dereferencing pointer to incomplete type
error: invalid use of incomplete typedef 'keme_cache_t'
what should I do?
I use "cache_chain" as the cache list. is it correct?