init_rs_gfp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so this is init_rs_gfp(9) from the Kernel API Manual, and bestie, it’s literally here to create a RS control struct and initialize it ✨ That’s the whole vibe: make the struct, init it, slay πŸ’…

✨ SYNOPSIS ✨

struct rs_control * init_rs_gfp (int symsize , int gfpoly , int fcr ,
       int prim , int nroots , gfp_t gfp );

πŸŽ€ ARGUMENTS πŸŽ€

  • symsize β€” the symbol size, aka the 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 β€” no cap, that’s a hard requirement πŸ’€
  • 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, aka the number of roots πŸ‘‘
  • gfp β€” memory allocation flags 🫢

πŸ’– SEE ALSO πŸ’–

Kernel file ./lib/reed_solomon/reed_solomon.c codec_init(9) β€” plus the rest of the squad, iykyk πŸ‘‘

xoxo, your kernel bestie πŸ’œ β€” from ./lib/reed_solomon, October 2026, page init_rs_gfp(9) 🌈

πŸ“¦ where this page comes from