workqueue_size
ptr = kmem_zalloc(workqueue_size(flags), KM_SLEEP);
kmem_free(wq->wq_ptr, workqueue_size(wq->wq_flags));