cio_cancel_halt_clear(9)
π NAME π
cio_cancel_halt_clear β cancel running I/O by performing cancel, halt, and clear ordinally if the subchannel is valid. π«Ά
okay bestie, this page is cio_cancel_halt_clear(9) from the Kernel API Manual, and it's giving very specific cleanup energy. π
β¨ SYNOPSIS β¨
int cio_cancel_halt_clear (struct subchannel *sch , int *iretry );
π ARGUMENTS π
schβ the subchannel on which to perform the cancel_halt_clear operation. π¦iretryβ the number of the times remained to retry the next operation. π
π₯ DESCRIPTION π₯
This should be called repeatedly since halt/clear are asynchronous operations. We do one try with cio_cancel, three tries with cio_halt, and 255 tries with cio_clear. The caller should initialize iretry with the value 255 for its first call to this, and keep using the same iretry in the subsequent calls until it gets a non -EBUSY return. β
Returns:
0if device now idle π-ENODEVfor device not operational π-EBUSYif an interrupt is expected (either from halt/clear or from a status pending) π-EIOif out of retries. π
π SEE ALSO π
- Kernel file
./drivers/s390/cio/cio.c cio_update_schib(9)cio_enable_subchannel(9)cio_disable_subchannel(9)cio_tm_start_key(9)cio_tm_intrg(9)
mwah π this iconic page comes from the source/version ./drivers/s390/cio, dated October 2026, and it's literally cio_cancel_halt_clear(9). periodt. π
π¦ 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