]>
git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/ocf/inc/ocf_types.h
2 * Copyright(c) 2012-2018 Intel Corporation
3 * SPDX-License-Identifier: BSD-3-Clause-Clear
10 #ifndef __OCF_TYPES_H_
11 #define __OCF_TYPES_H_
13 #include "ocf_env_headers.h"
16 * @brief cache id type (by default designated as 16 bit unsigned integer)
18 typedef uint16_t ocf_cache_id_t
;
21 * @brief cache line type (by default designated as 32 bit unsigned integer)
23 typedef uint32_t ocf_cache_line_t
;
26 * @brief core id type (by default designated as 16 bit unsigned integer)
28 typedef uint16_t ocf_core_id_t
;
31 * @brief core sequence number type (by default designated as 16 bit unsigned integer)
33 typedef uint16_t ocf_seq_no_t
;
36 * @brief partition id type (by default designated as 16 bit unsigned integer)
38 typedef uint16_t ocf_part_id_t
;
41 * @brief handle to object designating ocf context
43 typedef struct ocf_ctx
*ocf_ctx_t
;
47 * @brief handle to object designating ocf cache device
49 typedef struct ocf_cache
*ocf_cache_t
;
53 * @brief handle to object designating ocf core object
55 typedef struct ocf_core
*ocf_core_t
;
59 * @brief handle to object designating ocf volume
61 typedef struct ocf_volume
*ocf_volume_t
;
64 struct ocf_volume_type
;
66 * @brief handle to volume type
68 typedef const struct ocf_volume_type
*ocf_volume_type_t
;
71 * @brief handle to volume uuid
73 typedef struct ocf_volume_uuid
*ocf_uuid_t
;
76 * @brief handle to object designating ocf context object
78 typedef void ctx_data_t
;
81 * @brief handle to I/O queue
83 typedef struct ocf_queue
*ocf_queue_t
;
86 * @brief handle to cleaner
88 typedef struct ocf_cleaner
*ocf_cleaner_t
;
91 * @brief handle to metadata_updater
93 typedef struct ocf_metadata_updater
*ocf_metadata_updater_t
;
96 * @brief handle to logger
98 typedef struct ocf_logger
*ocf_logger_t
;