z/OS Communications Server: SNA Diagnosis Vol 1, Techniques and Procedures
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


SECP write channel program

z/OS Communications Server: SNA Diagnosis Vol 1, Techniques and Procedures
GC27-3667-00

The write channel program is a logical ring of eight write CCW sets followed by a TIC CCW back to the physical start of the ring. However, because write channel programs use suspend/resume, there is a CCW set between the logical end of the ring and the logical start of the ring that cannot be used. Therefore, a maximum of seven writes can be active at one time. The field CPNCB_index_word contains indexes of the logical first and last CCW sets in the ring and is used to maintain control over the channel program and write completion processing. All CCWs are command-chained together and the suspend bit is on in CCW following the last active write. PCI is always off with the exception that it is sometimes set halfway through the channel program when the channel program is large. As writes complete, PCI and suspend interrupts occur. The structures representing the written data are processed, and if another set of data is waiting for transmission, it is tacked-in to the end of the channel program and the channel program is resumed if it is suspended.

As with a read SECP, a missed tack can occur and it is the responsibility of the interrupt handler to resume the channel program.

The suspend/resume function is implemented for write devices because, unlike read devices where reads remain outstanding, it is expected that during normal operation there will be times when there is nothing to write.

Note the following differences between the read and write SECPs:
  • The read SECP ALPH pointers in the M2IO are set at link activation time and remain there until the link is deactivated. The write SECP ALPH pointers are nonzero only if the corresponding CCW set is active within the channel program. The write ALPHs can be assigned to any CCW set, while the read ALPHs are always assigned to the same set.
  • All 17 CCWs in the M2IO will participate in the IO operations, though not all can be active at the same time.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014