120 uint64_t to, uint64_t from, uint64_t bytes);
void ocf_ctx_unregister_volume_type(ocf_ctx_t ctx, uint8_t type_id)
Unregister volume interface.
void ocf_ctx_put(ocf_ctx_t ctx)
Decrease reference counter of ctx.
void ctx_data_t
handle to object designating ocf context object
Definition: ocf_types.h:73
int ocf_ctx_get_volume_type_id(ocf_ctx_t ctx, ocf_volume_type_t type)
Get volume type id by type.
void(* munlock)(ctx_data_t *data)
Unlock context data buffer.
Definition: ocf_ctx.h:62
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
Context data representation ops.
Definition: ocf_ctx.h:30
uint32_t(* write)(ctx_data_t *dst, const void *src, uint32_t size)
Write raw data buffer into context data buffer.
Definition: ocf_ctx.h:84
void ocf_ctx_get(ocf_ctx_t ctx)
Increase reference counter of ctx.
Definition: ocf_ctx.h:214
int ocf_ctx_register_volume_type(ocf_ctx_t ctx, uint8_t type_id, const struct ocf_volume_properties *properties)
Register volume interface.
void(* free)(ctx_data_t *data)
Free context data buffer.
Definition: ocf_ctx.h:45
uint64_t(* copy)(ctx_data_t *dst, ctx_data_t *src, uint64_t to, uint64_t from, uint64_t bytes)
Copy context data buffer content.
Definition: ocf_ctx.h:119
uint32_t(* read)(void *dst, ctx_data_t *src, uint32_t size)
Read from environment data buffer into raw data buffer.
Definition: ocf_ctx.h:73
OCF volume UUID.
Definition: ocf_volume.h:28
OCF context specific operation.
Definition: ocf_ctx.h:200
Definition: ocf_logger.h:31
int ocf_ctx_volume_create(ocf_ctx_t ctx, ocf_volume_t *volume, struct ocf_volume_uuid *uuid, uint8_t type_id)
Create volume of given type.
uint32_t(* seek)(ctx_data_t *dst, ctx_data_seek_t seek, uint32_t size)
Seek read/write head in context data buffer for specified offset.
Definition: ocf_ctx.h:106
uint32_t(* zero)(ctx_data_t *dst, uint32_t size)
Zero context data buffer.
Definition: ocf_ctx.h:94
struct ocf_volume * ocf_volume_t
handle to object designating ocf volume
Definition: ocf_types.h:56
ocf_volume_type_t ocf_ctx_get_volume_type(ocf_ctx_t ctx, uint8_t type_id)
Get volume type operations by type id.
struct ocf_cleaner * ocf_cleaner_t
handle to cleaner
Definition: ocf_types.h:83
void(* secure_erase)(ctx_data_t *dst)
Erase content of data buffer.
Definition: ocf_ctx.h:127
int ocf_ctx_create(ocf_ctx_t *ctx, const struct ocf_ctx_config *cfg)
Create and initialize OCF context.
int(* mlock)(ctx_data_t *data)
Lock context data buffer to disable swap-out.
Definition: ocf_ctx.h:55
Cleaner operations.
Definition: ocf_ctx.h:133
struct ocf_metadata_updater * ocf_metadata_updater_t
handle to metadata_updater
Definition: ocf_types.h:88
ctx_data_seek_t
Seeking start position in environment data buffer.
Definition: ocf_ctx.h:20
This structure describes volume properties.
Definition: ocf_volume.h:126