tccb_add_dcw(9)
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โ thetccbaddress ๐tccb_sizeโ the maximumtccbsize ๐cmdโ thedcwcommand ๐น๏ธflagsโ flags for thedcw๐ฉcdโ pointer to control data for thisdcworNULLif none is required ๐ซถcd_countโ number of control data bytes for thisdcw๐ขcountโ number of data bytes for thisdcw๐งฎ
๐ฆ 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 ๐
- Kernel file
./drivers/s390/cio/fcx.c๐ tcw_get_intrg(9)tcw_get_data(9)tcw_get_tccb(9)tcw_get_tsb(9)tcw_init(9)tcw_finalize(9)tcw_set_intrg(9)tcw_set_data(9)tcw_set_tccb(9)tcw_set_tsb(9)tccb_init(9)tsb_init(9)tcw_add_tidaw(9)
xoxo, your kernel bestie ๐ โ source/version ./drivers/s390/cio, dated October 2026. mwah ๐
๐ฆ 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