Reconnect notification for ACM CDC Gadget Serial TTY?

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

 



Hi,

In 2.6.27 f_acm.c, gserial_disconnect() is called when the ACM ttygsX is reset.

This has the effect of closing the TTY interface when for example the
USB cable is unplugged.

Hence my userspace program that was listening to ttygsX gets
disconnected from ttygsX.

How can my userspace program know when ttygsX is reconnected (eg. when
the USB cable is replugged), so it in turn can reconnect to ttygsX?

Perhaps the ACM CDC driver has some sort of way of notifying userspace programs?

Cheers,
Daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux