init_rs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 the rs code 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