itcw_init(9)
π itcw_init(9) β the kernel API glow-up
okay bestie, welcome to itcw_init(9) β¨ this is a page from the Kernel API Manual and it's all about getting your incremental tcw data structure ready to slay. it's in ./drivers/s390/cio if you're wondering where it lives π
πΈ NAME πΈ
itcw_init β initializes the incremental tcw data structure, no cap π
β¨ SYNOPSIS β¨
struct itcw * itcw_init (void *buffer , size_t size , int op , int intrg
, int max_tidaws , int intrg_max_tidaws );
π¦ ARGUMENTS π¦
bufferβ the address of the buffer you're gonna use for the data structures π«Άsizeβ how many bytes are in that buffer, literally the byte countopβ passITCW_OP_READif you want a read operation tcw, orITCW_OP_WRITEif you want a write operation tcw. pick your fighter πintrgβ if this is non-zero, an interrogate tcw gets added and initialized β¨max_tidawsβ the maximum number of tidaws used for data addressing, or zero if no tida is to be usedintrg_max_tidawsβ the maximum number of tidaws used for data addressing by the interrogate tcw, if one was specified π
π DESCRIPTION π
so the whole vibe here is: you hand over this buffer and itcw_init preps it to be used as an incremental tcw β which is basically a helper data structure that lets you build a valid tcw through successive calls to other helper functions. teamwork, iykyk π§
β οΈ heads up bestie: the buffer needs to be located below the 2G address limit. that's not optional, that's the law π
and the resulting tcw comes with these restrictions, fr fr:
- no tccb tidal
- input/output tidal is contiguous (no ttic)
- total data should not exceed 4k
- tcw specifies either read or write operation
on success, it returns a pointer to the resulting incremental tcw data structure. otherwise you get ERR_PTR β not iconic, but that's the deal π
π₯ SEE ALSO π₯
Kernel file ./drivers/s390/cio/itcw.c, plus these baddies: itcw_get_tcw(9), itcw_calc_size(9), itcw_add_dcw(9), itcw_add_tidaw(9), itcw_set_data(9), itcw_finalize(9) β
and that's the whole page, bestie π mwah π
this little love letter comes to you from ./drivers/s390/cio, dated October 2026, and it's your girl itcw_init(9) signing off πππ¦
π¦ 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