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
| know.

 I'd say 'is not necessary the best'.

| > Note that we don't only freed the port-related memory, we have also
| > to unregister the tty interface.
| 
| To get the naming I described we hopefully need to unregister the tty
| interface only. Port memory, URBs, etc., could be freed at close() time
| as it is now, I think.

 Port memory, URB and all is freed at close() time in the case we're
discussing. There are other cases, where that memory can be freed at
device disconnection time.

 Also, IIUC, this very first try isn't possible: when you unregister
the tty interface, there'll be no close(). Then you can't wait for
that to free the port memory and friends.

| One of tricky things is if it's possible to
| achieve without excessive modifications of all the usb-serial
| drivers.

 Sure. Any solution will only touch the usb-serial driver.

| 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 closer look
| at all this

 I don't this this is possible, but yeah, I'm interested to know too.

-- 
Luiz Fernando N. Capitulino


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to