2003-03-28 15:43:10

by Andries E. Brouwer

[permalink] [raw]
Subject: TIOCTTYGSTRUCT

Hi Ted,

Would you mind if I removed TIOCTTYGSTRUCT?

I suppose you don't need it any longer, and otherwise
could easily add some debugging stuff again when needed.
This ioctl exports lots of kernel-internal stuff that
userspace has no business looking at.
The direct reason I ask is that it also exports a kdev_t,
and the meaning of that will change.

Andries

>From Changelog:
Sat Nov 26 11:59:24 1994 Theodore Y. Ts'o (tytso@rt-11)

* tty_io.c (tty_ioctl): Add support for the new ioctl
TIOCTTYGSTRUCT, which allow a kernel debugging program
direct read access to the tty and tty_driver structures.


2003-03-31 23:28:47

by Theodore Ts'o

[permalink] [raw]
Subject: Re: TIOCTTYGSTRUCT

On Fri, Mar 28, 2003 at 04:49:46PM +0100, [email protected] wrote:
> Hi Ted,
>
> Would you mind if I removed TIOCTTYGSTRUCT?
>
> I suppose you don't need it any longer, and otherwise
> could easily add some debugging stuff again when needed.
> This ioctl exports lots of kernel-internal stuff that
> userspace has no business looking at.

Sure, go ahead; I'm pretty sure no one has used it for at least 6-7
years...

- Ted