tccb_add_dcw(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

tccb_add_dcw(9) โ€” Kernel API Manual โœจ

okay so bestie, welcome to the tccb_add_dcw(9) page from the Kernel API Manual ๐Ÿ’– this is the lil function that adds a dcw to the tccb, and yes it's giving kernel-internals main character energy. iykyk ๐Ÿซถ

๐Ÿ’– NAME ๐Ÿ’–

tccb_add_dcw โ€” add a dcw to the tccb ๐ŸŒธ

โœจ SYNOPSIS โœจ

struct dcw * tccb_add_dcw (struct tccb *tccb , size_t tccb_size , u8 cmd , u8 flags , void *cd , u8 cd_count , u32 count );

๐ŸŒธ ARGUMENTS ๐ŸŒธ

  • tccb โ€” the tccb address ๐Ÿ“
  • tccb_size โ€” the maximum tccb size ๐Ÿ“
  • cmd โ€” the dcw command ๐Ÿ•น๏ธ
  • flags โ€” flags for the dcw ๐Ÿšฉ
  • cd โ€” pointer to 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 ๐Ÿฆ‹

So basically: add a new dcw to the specified tccb by writing the dcw information specified by cmd, flags, cd, cd_count and count to the tca of the tccb โœจ. On success you get a pointer to the newly added dcw back โ€” slay ๐Ÿ’…. If the new dcw would exceed the available space as defined by tccb_size, you get -ENOSPC instead ๐Ÿ˜ญ. That's the vibe check: fits = pointer, doesn't fit = -ENOSPC.

๐ŸŽ€ NOTE ๐ŸŽ€

Heads up bestie: the tcal field of the tccb header will be updates to reflect added content ๐ŸŽ€.

๐ŸŒˆ SEE ALSO ๐ŸŒˆ


xoxo, your kernel bestie ๐Ÿ’– โ€” source/version ./drivers/s390/cio, dated October 2026. mwah ๐Ÿ’‹

๐Ÿ“ฆ where this page comes from