---
name: "init_rs"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/init_rs"
---

# init\_rs(9)

Find a matching or allocate a new rs control structure

## NAME

init\_rs - Find a matching or allocate a new rs control structure

## SYNOPSIS

**struct rs\_control \* init\_rs(int** *symsize***, int** *gfpoly***, int** *fcr***, int** *prim***, int** *nroots***);**

## ARGUMENTS

*symsize*

the symbol size (number of bits)

*gfpoly*

the extended Galois field generator polynomial coefficients, with the 0th coefficient in the low order bit. The polynomial must be primitive;

*fcr*

the first consecutive root of the rs code generator polynomial in index form

*prim*

primitive element to generate polynomial roots

*nroots*

RS code generator polynomial degree (number of roots)

## AUTHOR

**Thomas Gleixner** \<tglx@linutronix.de\>

Author.

## COPYRIGHT
