Lines Matching refs:mblk_cache
69 * All mblks for all types of messages come from a common mblk_cache.
163 static struct kmem_cache *mblk_cache;
197 if ((dbp->db_mblk = kmem_cache_alloc(mblk_cache, kmflags)) == NULL)
202 kmem_cache_free(mblk_cache, dbp->db_mblk);
228 if ((dbp->db_mblk = kmem_cache_alloc(mblk_cache, kmflags)) == NULL)
246 if ((dbp->db_mblk = kmem_cache_alloc(mblk_cache, kmflags)) == NULL)
251 kmem_cache_free(mblk_cache, dbp->db_mblk);
284 kmem_cache_free(mblk_cache, dbp->db_mblk);
299 kmem_cache_free(mblk_cache, dbp->db_mblk);
362 mblk_cache = kmem_cache_create("streams_mblk", sizeof (mblk_t), 32,
760 kmem_cache_free(mblk_cache, mp);
776 if ((new_mp = kmem_cache_alloc(mblk_cache, KM_NOSLEEP)) == NULL)
797 kmem_cache_free(mblk_cache, new_mp);