Understanding how stty decides that a device is serial?

I’ve scanned the charactor ddk source code, and I can’t figure out how
or where it informs stty that the device is a type: serial. Can
anyone help me understand why, or alternatively access to the source
of stty would probably be all I’d need.

Thanks

On 28/05/2007 11:52 PM, maschoen wrote:

I’ve scanned the charactor ddk source code, and I can’t figure out how
or where it informs stty that the device is a type: serial. Can
anyone help me understand why, or alternatively access to the source
of stty would probably be all I’d need.

It compares the first 3 characters of the device name to “ser” and sets
the type to serial if they match.


Ryan J. Allen
QNX Software Systems