---
name: "init_rs_non_canonical"
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_non_canonical"
---

# init\_rs\_non\_canonical(9)

Find a matching or allocate a new rs control structure, for fields with non-canonical representation

## NAME

init\_rs\_non\_canonical - Find a matching or allocate a new rs control structure, for fields with non-canonical representation

## SYNOPSIS

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

## ARGUMENTS

*symsize*

the symbol size (number of bits)

*gffunc*

pointer to function to generate the next field element, or the multiplicative identity element if given 0. Used instead of gfpoly if gfpoly is 0

*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
