Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Aug 2012 10:33:13 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-current@freebsd.org
Cc:        Konstantin Belousov <kostikbel@gmail.com>, Ed Schouten <ed@80386.nl>
Subject:   Re: ttydev_cdevsw has no d_purge
Message-ID:  <201208051033.13486.hselasky@c2i.net>
In-Reply-To: <CAJOYFBD6Xa08LXuzzYha7Ev9WDJFN5%2BHEqDJ6a2C0puFGZ4-Qg@mail.gmail.com>
References:  <20120801160323.GN2676@deviant.kiev.zoral.com.ua> <201208012341.25509.hselasky@c2i.net> <CAJOYFBD6Xa08LXuzzYha7Ev9WDJFN5%2BHEqDJ6a2C0puFGZ4-Qg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 03 August 2012 10:32:47 Ed Schouten wrote:
> 2012/8/1 Hans Petter Selasky <hselasky@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?

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208051033.13486.hselasky>