| version 1.138, 2007/12/05 06:52:01 |
version 1.138.2.1, 2007/12/10 08:56:56 |
| Line 2111 pool_cache_bootstrap(pool_cache_t pc, si |
|
| Line 2111 pool_cache_bootstrap(pool_cache_t pc, si |
|
| void |
void |
| pool_cache_destroy(pool_cache_t pc) |
pool_cache_destroy(pool_cache_t pc) |
| { |
{ |
| |
|
| |
pool_cache_bootstrap_destroy(pc); |
| |
pool_put(&cache_pool, pc); |
| |
} |
| |
|
| |
/* |
| |
* pool_cache_bootstrap_destroy: |
| |
* |
| |
* Kernel-private version of pool_cache_destroy(). |
| |
* Destroy a pool cache initialized by pool_cache_bootstrap. |
| |
*/ |
| |
void |
| |
pool_cache_bootstrap_destroy(pool_cache_t pc) |
| |
{ |
| struct pool *pp = &pc->pc_pool; |
struct pool *pp = &pc->pc_pool; |
| pool_cache_cpu_t *cc; |
pool_cache_cpu_t *cc; |
| pcg_t *pcg; |
pcg_t *pcg; |
| Line 2150 pool_cache_destroy(pool_cache_t pc) |
|
| Line 2164 pool_cache_destroy(pool_cache_t pc) |
|
| /* Finally, destroy it. */ |
/* Finally, destroy it. */ |
| mutex_destroy(&pc->pc_lock); |
mutex_destroy(&pc->pc_lock); |
| pool_destroy(pp); |
pool_destroy(pp); |
| pool_put(&cache_pool, pc); |
|
| } |
} |
| |
|
| /* |
/* |