STRUCT RAVE_SP_DEFRAMER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct rave_sp_deframer(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” we're talking about struct rave_sp_deframer today and honestly? it's giving "small struct, big responsibilities" πŸŽ€


✨ NAME ✨

struct rave_sp_deframer β€” the device protocol deframer, aka the little icon that turns framed bytes back into something your kernel can actually read πŸ¦‹


🌸 SYNOPSIS 🌸

like, here's the shape of it, no cap:

struct rave_sp_deframer {
    enum rave_sp_deframer_state state;
    unsigned char data[RAVE_SP_RX_BUFFER_SIZE];
    size_t length;
 };

that's the whole struct, and yes every field matters, don't skip any of them πŸ™ˆ


🧚 Members 🧚

so these are the three besties that live inside the struct:

  • state β€” the current state of the deframer πŸ’« literally where it's at, emotionally and protocol-wise
  • data β€” the buffer used to collect deframed data πŸ“ this is where the de-framed bytes get to hang out
  • length β€” the number of bytes de-framed so far πŸ”₯ a running count, keep it accurate

πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, iykyk πŸ’œ β€” they're all in the kernel file ./drivers/mfd/rave-sp.c:

  • enum rave_sp_deframer_state(9)
  • struct rave_sp_reply(9)
  • struct rave_sp_checksum(9)
  • struct rave_sp_variant_cmds(9)
  • struct rave_sp_variant(9)
  • struct rave_sp(9)

ngl this one's short and sweet, but that ./drivers/mfd directory is where all the lore lives β€” go explore it, bestie 🌈

mwah πŸ’‹ that's a wrap β€” this page came from ./drivers/mfd, dated October 2026, and it's your girl struct rave_sp_deframer(9) signing off ✨🫢

πŸ“¦ where this page comes from