DECODE_RS8(9) | Public Functions Provided | DECODE_RS8(9) |
NAME¶
decode_rs8 - Decode codeword (8bit data width)
SYNOPSIS¶
int decode_rs8(struct rs_control * rs, uint8_t * data, uint16_t * par, int len, uint16_t * s, int no_eras, int * eras_pos, uint16_t invmsk, uint16_t * corr);
ARGUMENTS¶
struct rs_control * rs
uint8_t * data
uint16_t * par
int len
uint16_t * s
int no_eras
int * eras_pos
uint16_t invmsk
uint16_t * corr
DESCRIPTION¶
The syndrome and parity uses a uint16_t data type to enable symbol size > 8. The calling code must take care of decoding of the syndrome result and the received parity before calling this code. Returns the number of corrected bits or -EBADMSG for uncorrectable errors.
AUTHOR¶
Thomas Gleixner <tglx@linutronix.de>
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.12 |