Re: [patch 00/10] ioctls: Convert ten architectures to asm-generic/ioctls.h

From: Arnd Bergmann
Date: Fri Aug 20 2010 - 18:23:57 EST


On Friday 20 August 2010 23:14:01 Jeff Mahoney wrote:
> - The generic list contains the termiox ioctl set. This seems to have
> been added to x86 with the expectation that other arch maintainers
> would add it to their own. New architectures have inherited this
> automatically via asm-generic/ioctls.h and there isn't anything
> inherently architecture specific about it. It's safe to just
> add it to the affected architectures. If there is resistance to
> this, I can submit a separate patchset to enable it on those
> architectures and THEN apply this patchet, but it seems like a
> waste of time.

Note that AFAICT there is not a single device driver that implements
the {set,get}_termiox functions, but enablign it does add extra code.

Alan added the infrastructure two years ago (see below), but it
seems we never adopted the use, or all the drivers using it were
already phased out again in the meantime.

I very much welcome making all architectures use the asm-generic/ioctls.h
file, that's why I added it in the first place. Whether or not we
actually want to have termiox support enabled without any drivers
using it is a separate question, but this would be a good time to
answer it.

Arnd

---
commit 1d65b4a088de407e99714fdc27862449db04fb5c
Author: Alan Cox <alan@xxxxxxxxxx>
Date: Mon Oct 13 10:38:18 2008 +0100

tty: Add termiox

We need a way to describe the various additional modes and flow control
features that random weird hardware shows up and software such as wine
wants to emulate as Windows supports them.

TCGETX/TCSETX and the termiox ioctl are a SYS5 extension that we might as
well adopt. This patches adds the structures and the basic ioctl interfaces
when the TCGETX etc defines are added for an architecture. Drivers wishing
to use this stuff need to add new methods.

Signed-off-by: Alan Cox <alan@xxxxxxxxxx>
Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/