STRUCT DCW(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 of DCW_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 of DCW_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