liberasurecode  1.4.0
Erasure Code API library
 All Data Structures Files Functions Variables Typedefs Macros
Data Structures | Macros | Typedefs | Functions | Variables
liberasurecode_rs_vand.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "erasurecode.h"
#include "erasurecode_backend.h"
#include "erasurecode_helpers.h"
#include "erasurecode_helpers_ext.h"

Go to the source code of this file.

Data Structures

struct  liberasurecode_rs_vand_descriptor
 

Macros

#define LIBERASURECODE_RS_VAND_LIB_MAJOR   1
 
#define LIBERASURECODE_RS_VAND_LIB_MINOR   0
 
#define LIBERASURECODE_RS_VAND_LIB_REV   0
 
#define LIBERASURECODE_RS_VAND_LIB_VER_STR   "1.0"
 
#define LIBERASURECODE_RS_VAND_LIB_NAME   "liberasurecode_rs_vand"
 
#define LIBERASURECODE_RS_VAND_SO_NAME   "liberasurecode_rs_vand.so.1"
 

Typedefs

typedef int(* liberasurecode_rs_vand_encode_func )(int *, char **, char **, int, int, int)
 
typedef int(* liberasurecode_rs_vand_decode_func )(int *, char **, char **, int, int, int *, int, int)
 
typedef int(* liberasurecode_rs_vand_reconstruct_func )(int *, char **, char **, int, int, int *, int, int)
 
typedef void(* init_liberasurecode_rs_vand_func )(int, int)
 
typedef void(* deinit_liberasurecode_rs_vand_func )()
 
typedef void(* free_systematic_matrix_func )(int *)
 
typedef int *(* make_systematic_matrix_func )(int, int)
 

Functions

static int liberasurecode_rs_vand_encode (void *desc, char **data, char **parity, int blocksize)
 
static int liberasurecode_rs_vand_decode (void *desc, char **data, char **parity, int *missing_idxs, int blocksize)
 
static int liberasurecode_rs_vand_reconstruct (void *desc, char **data, char **parity, int *missing_idxs, int destination_idx, int blocksize)
 
static int liberasurecode_rs_vand_min_fragments (void *desc, int *missing_idxs, int *fragments_to_exclude, int *fragments_needed)
 
static void * liberasurecode_rs_vand_init (struct ec_backend_args *args, void *backend_sohandle)
 
static int liberasurecode_rs_vand_element_size (void *desc)
 Return the element-size, which is the number of bits stored on a given device, per codeword. More...
 
static int liberasurecode_rs_vand_exit (void *desc)
 
static bool liberasurecode_rs_vand_is_compatible_with (uint32_t version)
 

Variables

struct ec_backend_op_stubs liberasurecode_rs_vand_ops
 
struct ec_backend liberasurecode_rs_vand
 
struct ec_backend_common backend_liberasurecode_rs_vand
 
struct ec_backend_op_stubs liberasurecode_rs_vand_op_stubs
 

Macro Definition Documentation

#define LIBERASURECODE_RS_VAND_LIB_MAJOR   1

Definition at line 35 of file liberasurecode_rs_vand.c.

#define LIBERASURECODE_RS_VAND_LIB_MINOR   0

Definition at line 36 of file liberasurecode_rs_vand.c.

#define LIBERASURECODE_RS_VAND_LIB_NAME   "liberasurecode_rs_vand"

Definition at line 39 of file liberasurecode_rs_vand.c.

#define LIBERASURECODE_RS_VAND_LIB_REV   0

Definition at line 37 of file liberasurecode_rs_vand.c.

#define LIBERASURECODE_RS_VAND_LIB_VER_STR   "1.0"

Definition at line 38 of file liberasurecode_rs_vand.c.

#define LIBERASURECODE_RS_VAND_SO_NAME   "liberasurecode_rs_vand.so.1"

Definition at line 43 of file liberasurecode_rs_vand.c.

Typedef Documentation

typedef void(* deinit_liberasurecode_rs_vand_func)()

Definition at line 55 of file liberasurecode_rs_vand.c.

typedef void(* free_systematic_matrix_func)(int *)

Definition at line 56 of file liberasurecode_rs_vand.c.

typedef void(* init_liberasurecode_rs_vand_func)(int, int)

Definition at line 54 of file liberasurecode_rs_vand.c.

typedef int(* liberasurecode_rs_vand_decode_func)(int *, char **, char **, int, int, int *, int, int)

Definition at line 52 of file liberasurecode_rs_vand.c.

typedef int(* liberasurecode_rs_vand_encode_func)(int *, char **, char **, int, int, int)

Definition at line 51 of file liberasurecode_rs_vand.c.

typedef int(* liberasurecode_rs_vand_reconstruct_func)(int *, char **, char **, int, int, int *, int, int)

Definition at line 53 of file liberasurecode_rs_vand.c.

typedef int*(* make_systematic_matrix_func)(int, int)

Definition at line 57 of file liberasurecode_rs_vand.c.

Function Documentation

static int liberasurecode_rs_vand_decode ( void *  desc,
char **  data,
char **  parity,
int *  missing_idxs,
int  blocksize 
)
static
static int liberasurecode_rs_vand_element_size ( void *  desc)
static

Return the element-size, which is the number of bits stored on a given device, per codeword.

For Vandermonde, this is 'w'. For somthing like cauchy, this is packetsize * w.

Returns the size in bits!

Definition at line 262 of file liberasurecode_rs_vand.c.

References liberasurecode_rs_vand_descriptor::w.

static int liberasurecode_rs_vand_encode ( void *  desc,
char **  data,
char **  parity,
int  blocksize 
)
static
static int liberasurecode_rs_vand_exit ( void *  desc)
static
static void* liberasurecode_rs_vand_init ( struct ec_backend_args *  args,
void *  backend_sohandle 
)
static
static bool liberasurecode_rs_vand_is_compatible_with ( uint32_t  version)
static

Definition at line 288 of file liberasurecode_rs_vand.c.

References backend_liberasurecode_rs_vand.

static int liberasurecode_rs_vand_min_fragments ( void *  desc,
int *  missing_idxs,
int *  fragments_to_exclude,
int *  fragments_needed 
)
static
static int liberasurecode_rs_vand_reconstruct ( void *  desc,
char **  data,
char **  parity,
int *  missing_idxs,
int  destination_idx,
int  blocksize 
)
static

Variable Documentation

struct ec_backend_common backend_liberasurecode_rs_vand
Initial value:
= {
.id = EC_BACKEND_LIBERASURECODE_RS_VAND,
.backend_metadata_size = 0,
.ec_backend_version = _VERSION(LIBERASURECODE_RS_VAND_LIB_MAJOR,
}
#define LIBERASURECODE_RS_VAND_LIB_MINOR
struct ec_backend_op_stubs liberasurecode_rs_vand_op_stubs
#define LIBERASURECODE_RS_VAND_LIB_MAJOR
#define LIBERASURECODE_RS_VAND_LIB_VER_STR
#define LIBERASURECODE_RS_VAND_LIB_REV
#define LIBERASURECODE_RS_VAND_LIB_NAME
#define LIBERASURECODE_RS_VAND_SO_NAME

Definition at line 49 of file liberasurecode_rs_vand.c.

Referenced by liberasurecode_rs_vand_is_compatible_with().

struct ec_backend liberasurecode_rs_vand

Definition at line 48 of file liberasurecode_rs_vand.c.

struct ec_backend_op_stubs liberasurecode_rs_vand_op_stubs
Initial value:
= {
}
static int liberasurecode_rs_vand_min_fragments(void *desc, int *missing_idxs, int *fragments_to_exclude, int *fragments_needed)
static int liberasurecode_rs_vand_encode(void *desc, char **data, char **parity, int blocksize)
static int liberasurecode_rs_vand_reconstruct(void *desc, char **data, char **parity, int *missing_idxs, int destination_idx, int blocksize)
static int liberasurecode_rs_vand_decode(void *desc, char **data, char **parity, int *missing_idxs, int blocksize)
static void * liberasurecode_rs_vand_init(struct ec_backend_args *args, void *backend_sohandle)
static bool liberasurecode_rs_vand_is_compatible_with(uint32_t version)
static int liberasurecode_rs_vand_element_size(void *desc)
Return the element-size, which is the number of bits stored on a given device, per codeword...
static int liberasurecode_rs_vand_exit(void *desc)

Definition at line 292 of file liberasurecode_rs_vand.c.

struct ec_backend_op_stubs liberasurecode_rs_vand_ops

Definition at line 47 of file liberasurecode_rs_vand.c.