tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Getting the device name from a struct tty *

In a tty line discipline, I want to get the name of the tty driver
instance, e.g. "dtyU0".  The line disciplines are called with a "struct
tty *" as argument, is there any (halfway sane) way to get at the name
of the driver instance?  I need the name of the instance, not only the
name of the driver.

"struct tty *" contains a "dev_t" element, fwiw.

Is that possible?

Home | Main Index | Thread Index | Old Index