STRUCT RAVE_SP_VARIANT_CMDS(9)
π struct rave_sp_variant_cmds(9) β bestie edition π
okay so picture this: it's the Kernel API Manual, section 9, and the star of the show is struct rave_sp_variant_cmds β literally the place where all the variant specific command routines live. like, every board wants to do its own lil thing and this struct is the vibe check that makes it happen β¨
πΈ NAME πΈ
struct rave_sp_variant_cmds β Variant specific command routines π¦
that's it, that's the whole name. short, iconic, main character energy π
β¨ SYNOPSIS β¨
here's the whole shape of it, no cap, copy it exactly bestie:
struct rave_sp_variant_cmds {
int (*translate)(enum rave_sp_command);
int (*get_status)(struct rave_sp *sp, struct rave_sp_status *);
};
two function pointers, zero drama, highkey perfect π
π«Ά Members π«Ά
translateβ the generic to variant specific command mapping routine π₯ like, you hand it a generic command and it tells you what the variant actually wants to do with it. a little translator bestie for your commands, iykyk πget_statusβ the variant specific implementation ofCMD_GET_STATUSπ yes queen, each variant gets to roll its own status-checking logic and honestly? obsessed π
π SEE ALSO π
go read these next, fr fr β first up the Kernel file ./drivers/mfd/rave-sp.c π§ and then the whole friend group:
enum rave_sp_deframer_state(9)struct rave_sp_deframer(9)struct rave_sp_reply(9)struct rave_sp_checksum(9)struct rave_sp_variant(9)struct rave_sp(9)
all of them slay in their own way, go say hi π
and that's the page π huge shoutout to ./drivers/mfd for being the source, and to October 2026 for the date stamp β periodt, end of manual, mwah ππ
π¦ 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