Query: encode_rs8
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ENCODE_RS8(9) Public Functions Provided ENCODE_RS8(9)NAMEencode_rs8 - Calculate the parity for data values (8bit data width)SYNOPSISint encode_rs8(struct rs_control * rs, uint8_t * data, int len, uint16_t * par, uint16_t invmsk);ARGUMENTSrs the rs control structure data data field of a given type len data length par parity data, must be initialized by caller (usually all 0) invmsk invert data mask (will be xored on data)DESCRIPTIONThe parity uses a uint16_t data type to enable symbol size > 8. The calling code must take care of encoding of the syndrome result for storage itself.AUTHORThomas Gleixner <tglx@linutronix.de> Author.COPYRIGHTKernel Hackers Manual 2.6. July 2010 ENCODE_RS8(9)