| 8226 | } |
| 8227 | |
| 8228 | void |
| 8229 | spdcache_clear(void) |
| 8230 | { |
| 8231 | struct spdcache_entry *entry; |
| 8232 | int i; |
| 8233 | |
| 8234 | for (i = 0; i < V_spdcachehash_mask + 1; ++i) { |
| 8235 | SPDCACHE_LOCK(i); |
| 8236 | while (!LIST_EMPTY(&V_spdcachehashtbl[i])) { |
| 8237 | entry = LIST_FIRST(&V_spdcachehashtbl[i]); |
| 8238 | LIST_REMOVE(entry, chain); |
| 8239 | spdcache_entry_free(entry); |
| 8240 | } |
| 8241 | SPDCACHE_UNLOCK(i); |
| 8242 | } |
| 8243 | } |
| 8244 | |
| 8245 | #ifdef VIMAGE |
| 8246 | void |
no test coverage detected