/* Return the number of bytes of data in the device private output queue. If no private method is supplied there is assumed to be no queue on the device.  */
int tty_chars_in_buffer(struct tty_struct *tty)
/* Return the number of bytes of data in the device private output queue. If no private method is supplied there is assumed to be no queue on the device.  */
int tty_chars_in_buffer(struct tty_struct *tty)
{
	if (tty->ops->chars_in_buffer)
		return tty->ops->chars_in_buffer(tty);
	else
		return 0;
}