STRUCT SEGDIST_CODE(9)
π 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 CodeSD[11:0]. twelve bits of pure distribution destiny. πseg_offset_maskβ Segment offset mask inSD[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:
slim_stream_allocate(9)slim_stream_prepare(9)slim_stream_enable(9)slim_stream_disable(9)slim_stream_unprepare(9)slim_stream_free(9)
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
- 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