Re: [PATCH] USB: serial: xr: Add TIOCGRS485 and TIOCSRS485 ioctls

From: Oliver Neukum
Date: Mon Mar 13 2023 - 16:21:04 EST




On 13.03.23 16:50, Greg Kroah-Hartman wrote:
On Mon, Mar 13, 2023 at 05:07:59PM +0200, Jarkko Sonninen wrote:

Using ENOTTY breaks all other tty ioctls.

What other tty ioctls?

confused,


This is one of those handlers which simulate OO inheritance in C.
You can implement any IOCTL in the driver. If you do not, you
give back -ENOICTLCOMMAND. Any other error means that you did
implement it and an error occured in the method.

HTH
Oliver