/* This routine is called by the kernel to write a series of characters to the tty device. The characters may come from user space or kernel space. This routine will return the number of characters actually accepted for writing.  */
static int sclp_tty_write(struct tty_struct *tty, const unsigned char *buf, int count)
/* This routine is called by the kernel to write a series of characters to the tty device. The characters may come from user space or kernel space. This routine will return the number of characters actually accepted for writing.  */
static int sclp_tty_write(struct tty_struct *tty, const unsigned char *buf, int count)
{
	if (sclp_tty_chars_count > 0) {
		sclp_tty_write_string(sclp_tty_chars, sclp_tty_chars_count, 0);
		sclp_tty_chars_count = 0;
	}
	return sclp_tty_write_string(buf, count, 1);
}