Open CAS Framework
Open source framework of Cache Acceleration Software
|
OCF volume interface declaration. More...
#include <ocf_volume.h>
Data Fields | |
void(* | submit_io )(struct ocf_io *io) |
Submit IO on this volume. More... | |
void(* | submit_flush )(struct ocf_io *io) |
Submit IO with flush command. More... | |
void(* | submit_metadata )(struct ocf_io *io) |
Submit IO with metadata. More... | |
void(* | submit_discard )(struct ocf_io *io) |
Submit IO with discard command. More... | |
void(* | submit_write_zeroes )(struct ocf_io *io) |
Submit operation to write zeroes to target address (including metadata extended LBAs in atomic mode) More... | |
int(* | open )(ocf_volume_t volume, void *volume_params) |
Open volume. More... | |
void(* | close )(ocf_volume_t volume) |
Close volume. More... | |
unsigned int(* | get_max_io_size )(ocf_volume_t volume) |
Get maximum io size. More... | |
uint64_t(* | get_length )(ocf_volume_t volume) |
Get volume length. More... | |
OCF volume interface declaration.
void(* close) (ocf_volume_t volume) |
Close volume.
[in] | volume | Volume |
uint64_t(* get_length) (ocf_volume_t volume) |
Get volume length.
[in] | volume | Volume |
unsigned int(* get_max_io_size) (ocf_volume_t volume) |
Get maximum io size.
[in] | volume | Volume |
int(* open) (ocf_volume_t volume, void *volume_params) |
Open volume.
[in] | volume | Volume |
[in] | volume_params | optional volume parameters, opaque to OCF |
void(* submit_discard) (struct ocf_io *io) |
Submit IO with discard command.
[in] | io | IO to be submitted |
void(* submit_flush) (struct ocf_io *io) |
Submit IO with flush command.
[in] | io | IO to be submitted |
void(* submit_io) (struct ocf_io *io) |
Submit IO on this volume.
[in] | io | IO to be submitted |
void(* submit_metadata) (struct ocf_io *io) |
Submit IO with metadata.
[in] | io | IO to be submitted |
void(* submit_write_zeroes) (struct ocf_io *io) |
Submit operation to write zeroes to target address (including metadata extended LBAs in atomic mode)
[in] | io | IO description (addr, size) |