Re: [linux-usb-devel] usb-serial device name allocation.

2006-07-21 Thread Pete Zaitcev
On Thu, 13 Jul 2006 22:56:07 +0400, Sergei Organov <[EMAIL PROTECTED]> wrote: > >> Well, simple test shows that an application just sees an EOF condition, > >> i.e., read() returns 0 when device is disconnected. > > > > You probably run it with effective stty -isig by zeroing termios. > > Doesn't

Re: [linux-usb-devel] usb-serial device name allocation.

2006-07-13 Thread Luiz Fernando N. Capitulino
On Thu, 13 Jul 2006 22:35:30 -0300 "Luiz Fernando N. Capitulino" <[EMAIL PROTECTED]> wrote: | | If tty layer supports some "detach" functionality, it could be | | easy to achieve, -- just detach tty at disconnect time and then later | | free the structure at close time. It seems I need to take a c

Re: [linux-usb-devel] usb-serial device name allocation.

2006-07-13 Thread Luiz Fernando N. Capitulino
On Thu, 13 Jul 2006 17:11:30 +0400 Sergei Organov <[EMAIL PROTECTED]> wrote: | "Luiz Fernando N. Capitulino" <[EMAIL PROTECTED]> writes: | | > It seems to me that the current implementation is the easier way | > to do it. | | Probably, but the easiest is not necessary the right one, as we all |

Re: [linux-usb-devel] usb-serial device name allocation.

2006-07-13 Thread Sergei Organov
Pete Zaitcev <[EMAIL PROTECTED]> writes: > On Thu, 13 Jul 2006 16:31:35 +0400, Sergei Organov <[EMAIL PROTECTED]> wrote: > >> > The application will get a signal that the device has "hung up" which >> > usually causes it to automatically close the file handle, which is about >> > the best that the

Re: [linux-usb-devel] usb-serial device name allocation.

2006-07-13 Thread Pete Zaitcev
On Thu, 13 Jul 2006 16:31:35 +0400, Sergei Organov <[EMAIL PROTECTED]> wrote: > > The application will get a signal that the device has "hung up" which > > usually causes it to automatically close the file handle, which is about > > the best that the kernel can provide. > > Well, simple test show

Re: [linux-usb-devel] usb-serial device name allocation.

2006-07-13 Thread Sergei Organov
"Luiz Fernando N. Capitulino" <[EMAIL PROTECTED]> writes: > Hi Sergei, > > On Wed, 12 Jul 2006 15:42:14 +0400 > Sergei Organov <[EMAIL PROTECTED]> wrote: > > | Suppose I have a usb-serial device managed, say, by the airprime > | driver. When I connect it, it is attached to the /dev/ttyUSB0, then,

Re: [linux-usb-devel] usb-serial device name allocation.

2006-07-13 Thread Sergei Organov
Greg KH <[EMAIL PROTECTED]> writes: > On Wed, Jul 12, 2006 at 03:42:14PM +0400, Sergei Organov wrote: >> Suppose I have a usb-serial device managed, say, by the airprime >> driver. When I connect it, it is attached to the /dev/ttyUSB0, then, >> every disconnect/connect results in detaching from /de

Re: [linux-usb-devel] usb-serial device name allocation.

2006-07-12 Thread Greg KH
On Wed, Jul 12, 2006 at 03:42:14PM +0400, Sergei Organov wrote: > Suppose I have a usb-serial device managed, say, by the airprime > driver. When I connect it, it is attached to the /dev/ttyUSB0, then, > every disconnect/connect results in detaching from /dev/ttyUSB0 and > attaching back to /dev/tt

Re: [linux-usb-devel] usb-serial device name allocation.

2006-07-12 Thread Luiz Fernando N. Capitulino
Hi Sergei, On Wed, 12 Jul 2006 15:42:14 +0400 Sergei Organov <[EMAIL PROTECTED]> wrote: | Suppose I have a usb-serial device managed, say, by the airprime | driver. When I connect it, it is attached to the /dev/ttyUSB0, then, | every disconnect/connect results in detaching from /dev/ttyUSB0 and

[linux-usb-devel] usb-serial device name allocation.

2006-07-12 Thread Sergei Organov
Suppose I have a usb-serial device managed, say, by the airprime driver. When I connect it, it is attached to the /dev/ttyUSB0, then, every disconnect/connect results in detaching from /dev/ttyUSB0 and attaching back to /dev/ttyUSB0 *unless* there is an application that keeps an opened fd got from