Lines Matching defs:queue

37  * | public queue functions						|
40 * Public queue locking rules. When acquiring multiple queue locks
47 * If a cmd_mutex is held, it is either held after the pending queue
48 * mutex or after the active queue mutex.
52 * iscsi_init_queue - used to initialize iscsi queue
55 iscsi_init_queue(iscsi_queue_t *queue)
57 ASSERT(queue != NULL);
59 queue->head = NULL;
60 queue->tail = NULL;
61 queue->count = 0;
62 mutex_init(&queue->mutex, NULL, MUTEX_DRIVER, NULL);
66 * iscsi_destroy_queue - used to terminate iscsi queue
69 iscsi_destroy_queue(iscsi_queue_t *queue)
71 ASSERT(queue != NULL);
72 ASSERT(queue->count == 0);
74 mutex_destroy(&queue->mutex);
78 * iscsi_enqueue_pending_cmd - used to add a command in a pending queue
104 * iscsi_dequeue_pending_cmd - used to remove a command from a pending queue
132 * iscsi_enqueue_active_cmd - used to add a command in a active queue
152 * is temporarily removed from the active queue.
154 * be returned to the active queue. If this was
166 * than the head of the active queue, put it at the head to keep
190 * iscsi_dequeue_active_cmd - used to remove a command from a active queue
225 * iscsi_enqueue_idm_aborting_cmd - used to add a command to the queue
250 * iscsi_dequeue_idm_aborting_cmd - used to remove a command from the queue
270 * iscsi_enqueue_completed_cmd - used to add a command in completion queue
300 * iscsi_move_queue - used to move the whole contents of a queue
302 * The source queue has to be initialized. Its mutex is entered before
303 * doing the actual move. The destination queue should be initialized.
304 * This function is intended to move a queue located in a shared location
305 * into local space. No mutex is needed for the destination queue.
332 * iscsi_dequeue_cmd - used to remove a command from a queue
346 /* empty queue, error */
349 /* one element queue */
357 /* multi-element queue */
387 /* icmdp no longer in the queue */
394 * iscsi_enqueue_cmd_head - used to add a command to the head of a queue
407 /* empty queue */
412 /* non-empty queue */
421 * iscsi_enqueue_cmd_tail - used to add a command to the tail of a queue
434 /* empty queue */
439 /* non-empty queue */