STRUCT SEGDIST_CODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct segdist_code(9) πŸŽ€

okay bestie, so this is a page from the Kernel API Manual and it's all about struct segdist_code β€” literally the Segment Distributions code straight out of Table 20 of the SLIMbus Specs Version 2.0. yes, the actual spec, not vibes. πŸ’…


✨ NAME ✨

struct segdist_code β€” the Segment Distributions code from Table 20 of SLIMbus Specs Version 2.0. that's it, that's the whole personality. πŸ¦‹


🌸 SYNOPSIS 🌸

here's the whole glow-up, character for character:

struct segdist_code {
    int ratem;
    int seg_interval;
    int segdist_code;
    u32 seg_offset_mask;
 };

πŸ’– Members πŸ’–

  • ratem β€” the Channel Rate Multipler(Segments per Superframe). segments per superframe, that's the whole deal. πŸ”₯
  • seg_interval β€” Number of slots between the first Slot of Segment and the first slot of the next consecutive Segment. so like… the gap between one segment's first slot and the next one's first slot. spacing matters, bestie. ✨
  • segdist_code β€” Segment Distribution Code SD[11:0]. twelve bits of pure distribution destiny. πŸ‘‘
  • seg_offset_mask β€” Segment offset mask in SD[11:0]. it lives inside those same bits, no cap. πŸŽ€

πŸ¦‹ SEE ALSO πŸ¦‹

go read the Kernel file ./drivers/slimbus/stream.c and also these iconic friends:


ngl bestie, if you're touching SLIMbus streams at all, this struct is lowkey your main character. read the spec table, respect the bits. 🫢

mwah πŸ’‹ this page lives in ./drivers/slimbus, the date on it is October 2026, and it's filed under struct segdist_code(9). periodt.

πŸ“¦ where this page comes from