Re: [PATCH 08/10] tty_io: export tty_class

From: Dmitry Eremin-Solenikov
Date: Mon Jun 01 2009 - 11:10:30 EST


2009/6/1 Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>:
> On Mon,  1 Jun 2009 18:54:49 +0400
> Dmitry Eremin-Solenikov <dbaryshkov@xxxxxxxxx> wrote:
>
>> Currently tty_class in a public variable in the tty_io.c
>> Export it to the modules to allow some usefull tricks.
>
> Thats exactly why it isn't exported. We don't want "tricks".

I'd like to find a struct device corresponding to the struct tty_struct
from the ldisc .open call. What would be the best way for me to do this?
I used class_find_device finding the device with matching minor. Will it be
acceptable, if I just move this code into tty_* file and export it as
to modules?


--
With best wishes
Dmitry
--
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/