tech-kern archive

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

Re: Closing a serial device takes one second (Marc Balmer) writes:

>I found similar code in usb/ucom.c.  It makes no sense to hardcode a 1
>sec delay in the driver.  If you open/close a device frequently, it
>totally slows down your application.

That's exactly what it is supposed to do, even when waiting in close
is bad and waiting in open would be better.

If your application _knows_ that the device doesn't support DTR,
then it can tell the driver to not send the hangup signal by
clearing the control flag HUPCL.

Home | Main Index | Thread Index | Old Index