|
liberasurecode 1.8.0
Erasure Code API library
|
#include <stdio.h>#include <stdlib.h>#include "erasurecode.h"#include "erasurecode_backend.h"Go to the source code of this file.
Data Structures | |
| struct | null_descriptor |
Macros | |
| #define | NULL_LIB_MAJOR 1 |
| #define | NULL_LIB_MINOR 0 |
| #define | NULL_LIB_REV 0 |
| #define | NULL_LIB_VER_STR "1.0" |
| #define | NULL_LIB_NAME "null" |
| #define | NULL_SO_NAME "libnullcode" LIBERASURECODE_SO_SUFFIX ".so.1" |
| #define | DEFAULT_W 32 |
Typedefs | |
| typedef void *(*) | init_null_code_func(int, int, int) |
| typedef int(*) | null_code_encode_func(void *, char **, char **, int) |
| typedef int(*) | null_code_decode_func(void *, char **, char **, int *, int, int) |
| typedef int(*) | null_reconstruct_func(char **, int, uint64_t, int, char *) |
| typedef int(*) | null_code_fragments_needed_func(void *, int *, int *, int *) |
Functions | |
| static int | null_encode (void *desc, char **data, char **parity, int blocksize) |
| static int | null_decode (void *desc, char **data, char **parity, int *missing_idxs, int blocksize) |
| static int | null_reconstruct (void *desc, char **data, char **parity, int *missing_idxs, int destination_idx, int blocksize) |
| static int | null_min_fragments (void *desc, int *missing_idxs, int *fragments_to_exclude, int *fragments_needed) |
| static int | null_element_size (void *desc) |
| Return the element-size, which is the number of bits stored on a given device, per codeword. | |
| static void * | null_init (struct ec_backend_args *args, void *backend_sohandle) |
| static int | null_exit (void *desc) |
| static bool | null_is_compatible_with (uint32_t version) |
| __attribute__ ((visibility("internal"))) | |
Variables | |
| static struct ec_backend_op_stubs | null_op_stubs |
| #define NULL_LIB_MAJOR 1 |
Definition at line 34 of file null.c.
Referenced by __attribute__().
| #define NULL_LIB_MINOR 0 |
Definition at line 35 of file null.c.
Referenced by __attribute__().
| #define NULL_LIB_NAME "null" |
Definition at line 38 of file null.c.
Referenced by __attribute__().
| #define NULL_LIB_REV 0 |
Definition at line 36 of file null.c.
Referenced by __attribute__().
| #define NULL_LIB_VER_STR "1.0" |
Definition at line 37 of file null.c.
Referenced by __attribute__().
| #define NULL_SO_NAME "libnullcode" LIBERASURECODE_SO_SUFFIX ".so.1" |
Definition at line 42 of file null.c.
Referenced by __attribute__().
| typedef int(*) null_code_decode_func(void *, char **, char **, int *, int, int) |
| typedef int(*) null_code_encode_func(void *, char **, char **, int) |
| typedef int(*) null_code_fragments_needed_func(void *, int *, int *, int *) |
| typedef int(*) null_reconstruct_func(char **, int, uint64_t, int, char *) |
| __attribute__ | ( | (visibility("internal")) | ) |
Definition at line 230 of file null.c.
References __attribute__(), backend_null, NULL_LIB_MAJOR, NULL_LIB_MINOR, NULL_LIB_NAME, NULL_LIB_REV, NULL_LIB_VER_STR, null_op_stubs, and NULL_SO_NAME.
|
static |
|
static |
Return the element-size, which is the number of bits stored on a given device, per codeword.
This is usually just 'w'.
Definition at line 105 of file null.c.
References DEFAULT_W, and null_element_size().
Referenced by null_element_size().
|
static |
|
static |
|
static |
Definition at line 110 of file null.c.
References null_descriptor::arg1, DEFAULT_W, null_descriptor::init_null_code, null_descriptor::k, null_descriptor::m, null_descriptor::null_code_decode, null_descriptor::null_code_encode, null_descriptor::null_code_fragments_needed, null_init(), null_descriptor::null_reconstruct, and null_descriptor::w.
Referenced by null_init().
|
static |
Definition at line 212 of file null.c.
References null_is_compatible_with().
Referenced by null_is_compatible_with().
|
static |
Definition at line 94 of file null.c.
References null_min_fragments().
Referenced by null_min_fragments().
|
static |
Definition at line 88 of file null.c.
References null_reconstruct().
Referenced by null_reconstruct(), and null_reconstruct().
|
static |
Definition at line 216 of file null.c.
Referenced by __attribute__().