ttydev_cdevsw has no d_purge

Hans Petter Selasky hselasky at c2i.net
Tue Aug 7 15:02:53 UTC 2012


On Sunday 05 August 2012 10:33:13 Hans Petter Selasky wrote:
> On Friday 03 August 2012 10:32:47 Ed Schouten wrote:
> > 2012/8/1 Hans Petter Selasky <hselasky at c2i.net>:
> > > I think the problem is like this, that in order to re-use the unit
> > > numbers for USB serial tty devices, the USB stack needs to wait until a
> > > TTY is actually freed, right? Else you will have a panic on creating
> > > devfs entries having the same name.
> > 
> > Indeed. So the USB code could simply pick a different unit number.
> 
> Hi Ed,
> 
> USB could use a different Unit number. Some questions:
> 
> When can the previous unit number be re-used? Is there a callback for this?
> 
> When can the USB serial code assume that it will not be called again and
> that all callbacks are drained?
> 

Hi,

Can you try the attached patch and report back?

--HPS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ucom_unit_number.patch
Type: text/x-patch
Size: 3175 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20120807/4901505e/ucom_unit_number.bin


More information about the freebsd-current mailing list