|
Open CAS Framework
Open source framework of Cache Acceleration Software
|
OCF queues API. More...
Go to the source code of this file.
Data Structures | |
| struct | ocf_queue_ops |
| I/O queue operations. More... | |
Functions | |
| int | ocf_queue_create (ocf_cache_t cache, ocf_queue_t *queue, const struct ocf_queue_ops *ops) |
| Allocate IO queue and add it to list in cache. More... | |
| void | ocf_queue_get (ocf_queue_t queue) |
| Increase reference counter in queue. More... | |
| void | ocf_queue_put (ocf_queue_t queue) |
| Decrease reference counter in queue. More... | |
| void | ocf_queue_run_single (ocf_queue_t q) |
| Process single request from queue. More... | |
| void | ocf_queue_run (ocf_queue_t q) |
| Run queue processing. More... | |
| void | ocf_queue_set_priv (ocf_queue_t q, void *priv) |
| Set queue private data. More... | |
| void * | ocf_queue_get_priv (ocf_queue_t q) |
| Get queue private data. More... | |
| uint32_t | ocf_queue_pending_io (ocf_queue_t q) |
| Get number of pending requests in I/O queue. More... | |
| ocf_cache_t | ocf_queue_get_cache (ocf_queue_t q) |
| Get cache instance to which I/O queue belongs. More... | |
OCF queues API.
| int ocf_queue_create | ( | ocf_cache_t | cache, |
| ocf_queue_t * | queue, | ||
| const struct ocf_queue_ops * | ops | ||
| ) |
Allocate IO queue and add it to list in cache.
| [in] | cache | Handle to cache instance |
| [out] | queue | Handle to created queue |
| [in] | ops | Queue operations |
| void ocf_queue_get | ( | ocf_queue_t | queue | ) |
Increase reference counter in queue.
| [in] | queue | Queue |
| ocf_cache_t ocf_queue_get_cache | ( | ocf_queue_t | q | ) |
Get cache instance to which I/O queue belongs.
| [in] | q | I/O queue |
| Cache | instance |
| void* ocf_queue_get_priv | ( | ocf_queue_t | q | ) |
Get queue private data.
| [in] | q | I/O queue |
| I/O | queue private data |
| uint32_t ocf_queue_pending_io | ( | ocf_queue_t | q | ) |
Get number of pending requests in I/O queue.
| [in] | q | I/O queue |
| Number | of pending requests in I/O queue |
| void ocf_queue_put | ( | ocf_queue_t | queue | ) |
Decrease reference counter in queue.
| [in] | queue | Queue |
| void ocf_queue_run | ( | ocf_queue_t | q | ) |
Run queue processing.
| [in] | q | Queue to run |
| void ocf_queue_run_single | ( | ocf_queue_t | q | ) |
Process single request from queue.
| [in] | q | Queue to run |
| void ocf_queue_set_priv | ( | ocf_queue_t | q, |
| void * | priv | ||
| ) |
Set queue private data.
| [in] | q | I/O queue |
| [in] | priv | Private data |
1.8.13