acache
static acache_hash_t *acache;
hp = &acache[acachehash(rp, cr)];
hp = &acache[acachehash(rp, cr)];
acache = kmem_alloc(acachesize * sizeof (*acache), KM_SLEEP);
acache[i].next = (acache_t *)&acache[i];
acache[i].prev = (acache_t *)&acache[i];
rw_init(&acache[i].lock, NULL, RW_DEFAULT, NULL);
rw_destroy(&acache[i].lock);
kmem_free(acache, acachesize * sizeof (*acache));
struct acache *next; /* next and prev must be first */
struct acache *prev;
struct acache *next; /* next and prev must be first */
struct acache *prev;
struct acache *list;