STRUCT US144MKII_FRAME_PATTERN_OBSERVER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct us144mkii_frame_pattern_observer πŸ’…

okay so this is a page from the Kernel API Manual, section 9, and bestie, it's giving "tiny struct, big responsibilities" energy. we're talking about struct us144mkii_frame_pattern_observer β€” the little state blob that keeps track of dynamic feedback patterns. that's it, that's the whole vibe. πŸŽ€


🌸 NAME 🌸

struct us144mkii_frame_pattern_observer β€” literally the state for dynamic feedback patterns, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct us144mkii_frame_pattern_observer {
    unsigned int sample_rate_khz;
    unsigned int base_feedback_value;
    int feedback_offset;
    unsigned int full_frame_patterns[5][8];
    unsigned int current_index;
    unsigned int previous_index;
    bool sync_locked;
 };

look at her. seven members. absolutely iconic. πŸ‘‘


πŸ’– Members πŸ’–

  • sample_rate_khz β€” the current sample rate, in kHz. that's the number, in kHz, right now. ✨
  • base_feedback_value β€” the nominal feedback value for whatever the current rate happens to be. the baseline. the default. the "you had one job" number.
  • feedback_offset β€” an offset used to align the feedback value range. it's the nudge that makes the range line up, and honestly? same. 🫢
  • full_frame_patterns β€” a 2D array of pre-calculated packet size patterns. yes bestie, pre-calculated, we are not doing that math live. declared as unsigned int full_frame_patterns[5][8];, so that's 5 by 8 of pure precomputed goodness. ⭐
  • current_index β€” the current index into the pattern array. the now index, if you will. πŸ“
  • previous_index β€” the previous index, used for state tracking. she remembers where you've been. πŸ’€
  • sync_locked β€” a flag indicating whether the pattern has locked to the stream. true means locked in, false means we're still looking for the beat. πŸ”₯

🌈 SEE ALSO 🌈

lowkey you have to check these out, they're all in the kernel file ./sound/usb/usx2y/us144mkii.h and they're all part of the same friend group:

go read them. iykyk. πŸ“šβœ¨


no notes, no bugs listed here, just a very well-behaved little struct doing her thing. main character energy only. πŸ‘‘

okay that's the whole page, bestie β€” shipped from ./sound/usb/usx2y, dated October 2026, and yes the header still says struct us14...ern_observer(9) because the terminal truncated it and we respect the truncation. periodt. πŸ’œπŸŽ€

πŸ“¦ where this page comes from