itcw_add_dcw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

itcw_add_dcw β€” add a dcw to the itcw. This is the itcw_add_dcw(9) page from the Kernel API Manual, and yes bestie, the whole assignment is β€œadd a dcw to the itcw.” Iconic. Slay. πŸŽ€βœ¨


🫢 SYNOPSIS 🫢

struct dcw * itcw_add_dcw (struct itcw *itcw , u8 cmd , u8 flags , void
       *cd , u8 cd_count , u32 count );

πŸ’… ARGUMENTS πŸ’…

  • itcw β€” address of the itcw πŸ‘‘
  • cmd β€” the dcw command ⭐
  • flags β€” flags for the dcw 🚩
  • cd β€” address of control data for this dcw, or NULL if none is required πŸ™ˆ
  • cd_count β€” number of control data bytes for this dcw πŸ”’
  • count β€” number of data bytes for this dcw πŸ“

🌸 DESCRIPTION 🌸

okay so this function adds a new dcw to the specified itcw by writing the dcw information specified by cmd, flags, cd, cd_count and count to the tca of the tccb. That’s the whole main-character move, fr fr. πŸ¦‹

On success you get a pointer to the newly added dcw; if the new dcw would exceed the available space, you get -ENOSPC. That’s the space vibe check, and it does not pass πŸ˜­πŸ’€


πŸŽ€ NOTE πŸŽ€

heads up bestie: the tcal field of the tccb header will be updated to reflect added content. not me being obsessed with header bookkeeping πŸ’…βœ¨


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/s390/cio/itcw.c β€” plus itcw_get_tcw(9), itcw_calc_size(9), itcw_init(9), itcw_add_tidaw(9), itcw_set_data(9), and itcw_finalize(9). Go read those, iykyk πŸ‘‘πŸŒˆ


later, bestie β€” signed with love from source/version ./drivers/s390/cio, dated October 2026, and this page is itcw_add_dcw(9). stay hydrated and may your tca always have room πŸ’–βœ¨

πŸ“¦ where this page comes from