ENUM STP_PACKET_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

enum stp_packet_type β€” bestie, this is literally the enum of STP packets that an STM driver sends πŸ‘‘

So we're in the Kernel API Manual, and this is the whole vibe: one little enum, seven constants, and honestly not a single description to its name 😭 iykyk.


✨ SYNOPSIS ✨

enum stp_packet_type {
    STP_PACKET_DATA ,
    STP_PACKET_FLAG ,
    STP_PACKET_USER ,
    STP_PACKET_MERR ,
    STP_PACKET_GERR ,
    STP_PACKET_TRIG ,
    STP_PACKET_XSYNC

};

That's the whole cast 🫢 all seven members, in order, no gatekeeping.


πŸŽ€ Constants πŸŽ€

Okay so here's the thing, and I need you to not be mad at me: the source page gives every single one of these as -- undescribed -- πŸ’€ That's not me skipping the tea, that's literally what the doc says. Every. Single. One.

  • STP_PACKET_DATA β€” -- undescribed -- πŸ™ˆ
  • STP_PACKET_FLAG β€” -- undescribed -- πŸ™ˆ
  • STP_PACKET_USER β€” -- undescribed -- πŸ™ˆ
  • STP_PACKET_MERR β€” -- undescribed -- πŸ™ˆ
  • STP_PACKET_GERR β€” -- undescribed -- πŸ™ˆ
  • STP_PACKET_TRIG β€” -- undescribed -- πŸ™ˆ
  • STP_PACKET_XSYNC β€” -- undescribed -- πŸ™ˆ
ngl the mystery is kind of iconic, but fr fr if you need the real meaning, go read the source. The manpage is giving "leave them wanting more" πŸ’…

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/stm.h
  • enum stp_packet_flags(9)
  • enum stm_source_type(9)
  • struct stm_data(9)
  • struct stm_source_data(9)

Literally the whole friend group, go say hi πŸ¦‹


And that's the post πŸ’œ this beauty lives in ./include/linux, dated October 2026 β€” so it's basically from the future, main character energy only πŸ’« slay, bye! πŸŽ€βœ¨

πŸ“¦ where this page comes from