1DECODE_RS8(9)              Public Functions Provided             DECODE_RS8(9)
2
3
4

NAME

6       decode_rs8 - Decode codeword (8bit data width)
7

SYNOPSIS

9       int decode_rs8(struct rs_control * rs, uint8_t * data, uint16_t * par,
10                      int len, uint16_t * s, int no_eras, int * eras_pos,
11                      uint16_t invmsk, uint16_t * corr);
12

ARGUMENTS

14       rs
15           the rs control structure
16
17       data
18           data field of a given type
19
20       par
21           received parity data field
22
23       len
24           data length
25
26       s
27           syndrome data field (if NULL, syndrome is calculated)
28
29       no_eras
30           number of erasures
31
32       eras_pos
33           position of erasures, can be NULL
34
35       invmsk
36           invert data mask (will be xored on data, not on parity!)
37
38       corr
39           buffer to store correction bitmask on eras_pos
40

DESCRIPTION

42       The syndrome and parity uses a uint16_t data type to enable symbol size
43       > 8. The calling code must take care of decoding of the syndrome result
44       and the received parity before calling this code. Returns the number of
45       corrected bits or -EBADMSG for uncorrectable errors.
46

AUTHOR

48       Thomas Gleixner <tglx@linutronix.de>
49           Author.
50
52Kernel Hackers Manual 3.10         June 2019                     DECODE_RS8(9)
Impressum