slab allocation에서 나오는 두개가 헷갈렸었는데, 찾아보니 별거 아니였다.
initarray_cache는
- static struct arraycache_init initarray_cache __initdata =
- { {0, BOOT_CPUCACHE_ENTRIES, 1, 0} };
arraycache_init는
- #define BOOT_CPUCACHE_ENTRIES 1
- struct arraycache_init {
- struct array_cache cache;
- void *entries[BOOT_CPUCACHE_ENTRIES];
- }
결국, initarray_cache는 arraycache_init 타입으로 정적으로 만들어져 initdata 영역에 미리 준비되는(cache_cache 생성시 필요) 것이었다.
'리눅스 > 커널' 카테고리의 다른 글
VFS(1) -추상적 레이어- (0) | 2012.12.08 |
---|---|
make menuconfig 시에 원하는 옵션 찾아보기 (0) | 2012.11.30 |
BYTES_PER_WORD (0) | 2012.10.15 |
Newton-Raphson technique (0) | 2012.10.15 |
linux kernel, mem_init() (0) | 2012.10.05 |