|
Open CAS Framework
Open source framework of Cache Acceleration Software
|
Context data representation ops. More...
#include <ocf_ctx.h>
Data Fields | |
| ctx_data_t *(* | alloc )(uint32_t pages) |
| Allocate contest data buffer. More... | |
| void(* | free )(ctx_data_t *data) |
| Free context data buffer. More... | |
| int(* | mlock )(ctx_data_t *data) |
| Lock context data buffer to disable swap-out. More... | |
| void(* | munlock )(ctx_data_t *data) |
| Unlock context data buffer. More... | |
| uint32_t(* | read )(void *dst, ctx_data_t *src, uint32_t size) |
| Read from environment data buffer into raw data buffer. More... | |
| uint32_t(* | write )(ctx_data_t *dst, const void *src, uint32_t size) |
| Write raw data buffer into context data buffer. More... | |
| uint32_t(* | zero )(ctx_data_t *dst, uint32_t size) |
| Zero context data buffer. More... | |
| 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. More... | |
| 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. More... | |
| void(* | secure_erase )(ctx_data_t *dst) |
| Erase content of data buffer. More... | |
Context data representation ops.
| ctx_data_t*(* alloc) (uint32_t pages) |
Allocate contest data buffer.
| [in] | pages | The size of data buffer in pages |
| 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.
| [in,out] | dst | Destination context data buffer |
| [in] | src | Source context data buffer |
| [in] | to | Starting offset in destination buffer |
| [in] | from | Starting offset in source buffer |
| [in] | bytes | Number of bytes to be copied |
| void(* free) (ctx_data_t *data) |
Free context data buffer.
| [in] | data | Contex data buffer which shall be freed |
| int(* mlock) (ctx_data_t *data) |
Lock context data buffer to disable swap-out.
| [in] | data | Contex data buffer which shall be locked |
| 0 | Memory locked successfully |
| Non-zero | Memory locking failure |
| void(* munlock) (ctx_data_t *data) |
Unlock context data buffer.
| [in] | data | Contex data buffer which shall be unlocked |
| uint32_t(* read) (void *dst, ctx_data_t *src, uint32_t size) |
Read from environment data buffer into raw data buffer.
| [in,out] | dst | Destination raw memory buffer |
| [in] | src | Source context data buffer |
| [in] | size | Number of bytes to be read |
| void(* secure_erase) (ctx_data_t *dst) |
Erase content of data buffer.
| [in] | dst | Contex data buffer which shall be erased |
| 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.
| [in,out] | dst | Destination context data buffer to be seek |
| [in] | seek | Seek beginning offset |
| [in] | size | Number of bytes to be seek |
| uint32_t(* write) (ctx_data_t *dst, const void *src, uint32_t size) |
Write raw data buffer into context data buffer.
| [in,out] | dst | Destination context data buffer |
| [in] | src | Source raw memory buffer |
| [in] | size | Number of bytes to be written |
| uint32_t(* zero) (ctx_data_t *dst, uint32_t size) |
Zero context data buffer.
| [in,out] | dst | Destination context data buffer to be zeroed |
| [in] | size | Number of bytes to be zeroed |
1.8.13