Open CAS Framework
Open source framework of Cache Acceleration Software
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
ocf_types.h
Go to the documentation of this file.
1 /*
2  * Copyright(c) 2012-2020 Intel Corporation
3  * SPDX-License-Identifier: BSD-3-Clause-Clear
4  */
5 
10 #ifndef __OCF_TYPES_H_
11 #define __OCF_TYPES_H_
12 
13 #include "ocf_env_headers.h"
14 
18 typedef uint32_t ocf_cache_line_t;
19 
23 typedef uint16_t ocf_core_id_t;
24 
28 typedef uint16_t ocf_seq_no_t;
29 
33 typedef uint16_t ocf_part_id_t;
34 
38 typedef struct ocf_ctx *ocf_ctx_t;
39 
40 struct ocf_cache;
44 typedef struct ocf_cache *ocf_cache_t;
45 
46 struct ocf_core;
50 typedef struct ocf_core *ocf_core_t;
51 
52 struct ocf_volume;
56 typedef struct ocf_volume *ocf_volume_t;
57 
58 
59 struct ocf_volume_type;
63 typedef struct ocf_volume_type *ocf_volume_type_t;
64 
68 typedef struct ocf_volume_uuid *ocf_uuid_t;
69 
73 typedef void ctx_data_t;
74 
78 typedef struct ocf_queue *ocf_queue_t;
79 
83 typedef struct ocf_cleaner *ocf_cleaner_t;
84 
88 typedef struct ocf_metadata_updater *ocf_metadata_updater_t;
89 
93 typedef struct ocf_logger *ocf_logger_t;
94 
95 #endif
struct ocf_cache * ocf_cache_t
handle to object designating ocf cache device
Definition: ocf_types.h:44
uint16_t ocf_core_id_t
core id type (by default designated as 16 bit unsigned integer)
Definition: ocf_types.h:23
struct ocf_volume_uuid * ocf_uuid_t
handle to volume uuid
Definition: ocf_types.h:68
void ctx_data_t
handle to object designating ocf context object
Definition: ocf_types.h:73
struct ocf_logger * ocf_logger_t
handle to logger
Definition: ocf_types.h:93
struct ocf_volume_type * ocf_volume_type_t
handle to volume type
Definition: ocf_types.h:63
struct ocf_ctx * ocf_ctx_t
handle to object designating ocf context
Definition: ocf_types.h:38
uint16_t ocf_part_id_t
partition id type (by default designated as 16 bit unsigned integer)
Definition: ocf_types.h:33
OCF volume UUID.
Definition: ocf_volume.h:28
uint16_t ocf_seq_no_t
core sequence number type (by default designated as 16 bit unsigned integer)
Definition: ocf_types.h:28
struct ocf_volume * ocf_volume_t
handle to object designating ocf volume
Definition: ocf_types.h:56
struct ocf_queue * ocf_queue_t
handle to I/O queue
Definition: ocf_types.h:78
struct ocf_cleaner * ocf_cleaner_t
handle to cleaner
Definition: ocf_types.h:83
struct ocf_core * ocf_core_t
handle to object designating ocf core object
Definition: ocf_types.h:50
struct ocf_metadata_updater * ocf_metadata_updater_t
handle to metadata_updater
Definition: ocf_types.h:88
uint32_t ocf_cache_line_t
cache line type (by default designated as 32 bit unsigned integer)
Definition: ocf_types.h:18