init_rs(9)
init_rs(9) β¨
okay so bestie, welcome to the Kernel API Manual page for init_rs(9) β this one is all about creating a RS control struct and getting it initialized. it's giving βsmall function, important setup,β and we're gonna read it together π
πΈ NAME πΈ
init_rs β create a RS control struct and initialize it, periodt β¨
β¨ SYNOPSIS β¨
struct rs_control * init_rs (int symsize , int gfpoly , int fcr , int prim , int nroots );
π ARGUMENTS π
symsizeβ the symbol size (number of bits). literally the bit-count vibe for each symbol πgfpolyβ the extended Galois field generator polynomial coefficients, with the 0th coefficient in the low order bit. and bestie, the polynomial must be primitive β no cap, that part is non-negotiable π«Άfcrβ the first consecutive root of therscode generator polynomial in index form. iconic index-form behavior β¨primβ primitive element to generate polynomial roots. yes ma'am, roots are getting generated π±nrootsβ RS code generator polynomial degree (number of roots). so like, the degree, aka the number of roots π
π DESCRIPTION π
Allocations use GFP_KERNEL.
that's the description, bestie β short, sweet, and fully booked with GFP_KERNEL energy π«
π¦ SEE ALSO π¦
- Kernel file
./include/linux/rslib.hβ go peek, iykyk π struct rs_codec(9)struct rs_control(9)
mwah π β source/version is ./include/linux, dated October 2026, and that's the cute little sign-off bestie π«Άπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms