STRUCT QDR(9)
π struct qdr(9) β the queue description record glow-up
okay bestie, buckle up, we're reading struct qdr(9) from the Kernel API Manual and honestly? it's giving "backstage pass to the queue" energy. QDR = queue description record, and it's the little blueprint that tells you everything about a queue's format, sizes, addresses and key. no cap, it's iconic. π
β¨ NAME β¨
struct qdr β queue description record (QDR). that's it, that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
here's the whole thing, copied exactly, don't @ me:
struct qdr {
u32 qfmt : 8;
u32 : 16;
u32 ac : 8;
u32 : 8;
u32 iqdcnt : 8;
u32 : 8;
u32 oqdcnt : 8;
u32 : 8;
u32 iqdsz : 8;
u32 : 8;
u32 oqdsz : 8;
dma64_t qiba;
u32 : 32;
u32 qkey : 4;
u32 : 28;
struct qdesfmt0 qdf0[126];
};
like, look at all those anonymous bit-field gaps (: 16, : 8, : 32, : 28β¦). they're not filler, they're padding, and they are serving structure. periodt. π
π Members π
bestie, let's go member by member, no skipping, we don't do that here:
qfmtβ queue format. the whole personality of the queue in one field. β¨acβ adapter characteristics. the adapter's little resume of traits. π«Άiqdcntβ input queue descriptor count. how many input descriptors we're working with. πoqdcntβ output queue descriptor count. same energy, but output. πΈiqdszβ input queue descriptor size. the size, for the input side. πoqdszβ output queue descriptor size. the size, for the output side. πqibaβ absolute address of queue information block. a whole absolute address, main character energy. π₯qkeyβ queue information block key. it's a 4-bit key and it's lowkey important. π (well,: 4bits important.)qdf0β queue descriptions. an array[126]ofstruct qdesfmt0, and yes, 126 of them, we counted. π
π¦ SEE ALSO π¦
the friend group!! go say hi, they all live in Kernel file ./arch/s390/include/asm/qdio.h:
struct qdesfmt0(9)struct qib(9)struct slibe(9)struct qaob(9)struct slib(9)struct qdio_buffer_element(9)struct qdio_buffer(9)struct sl_element(9)struct sl(9)struct slsb(9)struct qdio_initialize(9)
ngl, if you're touching queues on s390 you're gonna want to read these. iykyk. π
and that's the page!! mwah π this one came from ./arch/s390/include/asm, dated October 2026, and it's struct qdr(9) forever and always. slay, go read your headers. π§ββοΈβ
π¦ 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