liberasurecode  1.4.0
Erasure Code API library
 All Data Structures Files Functions Variables Typedefs Macros
Macros | Functions | Variables
isa_l_rs_cauchy.c File Reference
#include <stdlib.h>
#include "erasurecode_backend.h"
#include "isa_l_common.h"

Go to the source code of this file.

Macros

#define ISA_L_RS_CAUCHY_LIB_MAJOR   2
 
#define ISA_L_RS_CAUCHY_LIB_MINOR   14
 
#define ISA_L_RS_CAUCHY_LIB_REV   1
 
#define ISA_L_RS_CAUCHY_LIB_VER_STR   "2.14"
 
#define ISA_L_RS_CAUCHY_LIB_NAME   "isa_l_rs_cauchy"
 
#define ISA_L_RS_CAUCHY_SO_NAME   "libisal.so.2"
 

Functions

static void * isa_l_rs_cauchy_init (struct ec_backend_args *args, void *backend_sohandle)
 
static bool isa_l_rs_cauchy_is_compatible_with (uint32_t version)
 

Variables

struct ec_backend_op_stubs isa_l_rs_cauchy_ops
 
struct ec_backend isa_l_rs_cauchy
 
struct ec_backend_common backend_isa_l_rs_cauchy
 
struct ec_backend_op_stubs isa_l_rs_cauchy_op_stubs
 

Macro Definition Documentation

#define ISA_L_RS_CAUCHY_LIB_MAJOR   2

Definition at line 35 of file isa_l_rs_cauchy.c.

#define ISA_L_RS_CAUCHY_LIB_MINOR   14

Definition at line 36 of file isa_l_rs_cauchy.c.

#define ISA_L_RS_CAUCHY_LIB_NAME   "isa_l_rs_cauchy"

Definition at line 39 of file isa_l_rs_cauchy.c.

#define ISA_L_RS_CAUCHY_LIB_REV   1

Definition at line 37 of file isa_l_rs_cauchy.c.

#define ISA_L_RS_CAUCHY_LIB_VER_STR   "2.14"

Definition at line 38 of file isa_l_rs_cauchy.c.

#define ISA_L_RS_CAUCHY_SO_NAME   "libisal.so.2"

Definition at line 43 of file isa_l_rs_cauchy.c.

Function Documentation

static void* isa_l_rs_cauchy_init ( struct ec_backend_args *  args,
void *  backend_sohandle 
)
static

Definition at line 51 of file isa_l_rs_cauchy.c.

References isa_l_common_init().

static bool isa_l_rs_cauchy_is_compatible_with ( uint32_t  version)
static

Definition at line 61 of file isa_l_rs_cauchy.c.

References backend_isa_l_rs_cauchy.

Variable Documentation

struct ec_backend_common backend_isa_l_rs_cauchy
Initial value:
= {
.id = EC_BACKEND_ISA_L_RS_CAUCHY,
.backend_metadata_size = 0,
.ec_backend_version = _VERSION(ISA_L_RS_CAUCHY_LIB_MAJOR,
}
struct ec_backend_op_stubs isa_l_rs_cauchy_op_stubs
#define ISA_L_RS_CAUCHY_SO_NAME
#define ISA_L_RS_CAUCHY_LIB_VER_STR
#define ISA_L_RS_CAUCHY_LIB_NAME
#define ISA_L_RS_CAUCHY_LIB_MAJOR
#define ISA_L_RS_CAUCHY_LIB_REV
#define ISA_L_RS_CAUCHY_LIB_MINOR

Definition at line 49 of file isa_l_rs_cauchy.c.

Referenced by isa_l_rs_cauchy_is_compatible_with().

struct ec_backend isa_l_rs_cauchy

Definition at line 48 of file isa_l_rs_cauchy.c.

struct ec_backend_op_stubs isa_l_rs_cauchy_op_stubs
Initial value:
= {
.EXIT = isa_l_exit,
.ENCODE = isa_l_encode,
.DECODE = isa_l_decode,
.FRAGSNEEDED = isa_l_min_fragments,
.RECONSTRUCT = isa_l_reconstruct,
.ELEMENTSIZE = isa_l_element_size,
}
int isa_l_reconstruct(void *desc, char **data, char **parity, int *missing_idxs, int destination_idx, int blocksize)
Definition: isa_l_common.c:292
int isa_l_min_fragments(void *desc, int *missing_idxs, int *fragments_to_exclude, int *fragments_needed)
Definition: isa_l_common.c:404
int isa_l_exit(void *desc)
Definition: isa_l_common.c:441
static void * isa_l_rs_cauchy_init(struct ec_backend_args *args, void *backend_sohandle)
int isa_l_encode(void *desc, char **data, char **parity, int blocksize)
Definition: isa_l_common.c:39
int isa_l_decode(void *desc, char **data, char **parity, int *missing_idxs, int blocksize)
Definition: isa_l_common.c:188
int isa_l_element_size(void *desc)
Return the element-size, which is the number of bits stored on a given device, per codeword...
Definition: isa_l_common.c:436
static bool isa_l_rs_cauchy_is_compatible_with(uint32_t version)

Definition at line 65 of file isa_l_rs_cauchy.c.

struct ec_backend_op_stubs isa_l_rs_cauchy_ops

Definition at line 47 of file isa_l_rs_cauchy.c.