ocf/src/ocf_queue_priv.h
Robert Baldyga a8e1ce8cc5 Initial commit
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2018-11-29 15:14:21 +01:00

32 lines
526 B
C

/*
* Copyright(c) 2012-2018 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
#ifndef OCF_QUEUE_PRIV_H_
#define OCF_QUEUE_PRIV_H_
#include "ocf_env.h"
struct ocf_queue {
struct ocf_cache *cache;
uint32_t id;
env_atomic io_no;
struct list_head io_list;
env_spinlock io_list_lock;
void *priv;
};
int ocf_alloc_queues(struct ocf_cache *cache);
int ocf_start_queues(struct ocf_cache *cache);
void ocf_stop_queues(struct ocf_cache *cache);
void ocf_free_queues(struct ocf_cache *cache);
#endif