Results 1 to 1 of 1
I 'm writing a code to traverse all allocated slabs. First I traverse cache list through "cache_chain". my code is:
Code:
struct list_head cache_chain, *p;
list_for_each(p, &cache_chain){
kmem_cache_t *cachep=list_entry(p, struct ...
- 09-15-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 2
traversing slab list
I 'm writing a code to traverse all allocated slabs. First I traverse cache list through "cache_chain". my code is:
but when compiling I receive following errors:Code:struct list_head cache_chain, *p; list_for_each(p, &cache_chain){ kmem_cache_t *cachep=list_entry(p, struct kmem_cache_t, next); ... }
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?


Reply With Quote
