/* If the specified subchannel is running in transport-mode, perform the interrogate function. Return zero on success, non-zero otherwie.  */
int cio_tm_intrg(struct subchannel *sch)
/* If the specified subchannel is running in transport-mode, perform the interrogate function. Return zero on success, non-zero otherwie.  */
int cio_tm_intrg(struct subchannel *sch)
{
	int cc;
	if (!to_io_private(sch)->orb.tm.b)
		return -EINVAL;
	cc = xsch(sch->schid);
	switch (cc) {
	case 0:
	case 2:
		return 0;
	case 1:
		return -EBUSY;
	default:
		return -ENODEV;
	}
}