STRUCT DCW(9)
π struct dcw(9) π
okay bestie, welcome to the struct dcw(9) page β straight out of the Kernel API Manual, and yes it's exactly as niche and iconic as it sounds β¨
πΈ NAME πΈ
struct dcw β the Device-Command Word, aka DCW. that's the whole name, no notes, she's literally just that π
π SYNOPSIS π
here's the look, don't touch anything, it's giving very structured:
struct dcw {
u32 cmd:8;
u32 flags:8;
u32 :8;
u32 cd_count:8;
u32 count;
u8 cd[];
};
notice the third field? yeah, u32 :8; β she has no name and no description, she's just there, anonymous, living her best life π (we don't list her in Members, because the manpage doesn't, and we respect the source β)
π Members π
cmdβ the Command Code π can be one ofDCW_CMD_WRITE,DCW_CMD_READ,DCW_CMD_CONTROL,DCW_CMD_SENSE,DCW_CMD_SENSE_ID,DCW_CMD_INTRG. pick one, bestie, and slay.flagsβ the Flags β¨ can be an arithmetic OR ofDCW_FLAGS_CC. that's the whole menu, no secret items.cd_countβ the Control-Data Count πcountβ the Count π«Ά yes. that's it. that's the description. count.cdβ the Control Data π¦ it's an array (u8 cd[]), she's flexible, we love her.
π SEE ALSO π
go touch these next, iykyk π
- Kernel file
./arch/s390/include/asm/fcx.h struct tcw(9)struct tidaw(9)struct tsa_iostat(9)struct tsa_intrg(9)struct tsb(9)struct dcw_intrg_data(9)struct tccb_tcah(9)struct tccb_tcat(9)struct tccb(9)
likeβ¦ that's a whole friend group right there, go say hi π§
ngl there are no options, no exit statuses, no env vars and no bug notes on this page β she's short, she's sweet, she's a struct. don't go looking for lore that isn't there π
mwah π β this one lives in ./arch/s390/include/asm, dated October 2026, and that's the whole sign-off, 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