cir_queue: changed API of cir_queue, user must allocate buffer for the queue