Date: Thu, 9 Aug 2012 00:51:55 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Hans Petter Selasky <hselasky@c2i.net> Cc: Ed Schouten <ed@80386.nl>, freebsd-current@freebsd.org Subject: Re: ttydev_cdevsw has no d_purge Message-ID: <20120808215155.GP2676@deviant.kiev.zoral.com.ua> In-Reply-To: <201208081942.24619.hselasky@c2i.net> References: <20120801160323.GN2676@deviant.kiev.zoral.com.ua> <201208081827.53824.hselasky@c2i.net> <CAJOYFBD4DxL8ZAeKDYZwtv2FaqcV0Taw%2BLES5nc6Ry_t%2BuzfOw@mail.gmail.com> <201208081942.24619.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--YqVjBi0tQ7r7wVWr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 08, 2012 at 07:42:24PM +0200, Hans Petter Selasky wrote: > On Wednesday 08 August 2012 19:24:18 Ed Schouten wrote: > > 2012/8/8 Hans Petter Selasky <hselasky@c2i.net>: > > >> I have a question regarding the changed fragment of code. Why don't = you > > >> use unr(9) KPI to manage unit numbers ? > > >=20 > > > Probably I could, but right now the unr interface doesn't support pen= ding > > > unit free which I need for other reasons, see below. > >=20 > > What does `pending unit free' mean? I also would prefer it if you used > > unr(9) -- not just here, but across the entire USB stack. >=20 > It is like a drain state, where a unit is collected for free, and then=20 > committed to free state when the tsw_free() is called. In the [unlocked] = time=20 > in between the unit cannot be re-used. Still, why do you need such intermediate state ? You cannot reuse the unit number while it is in the 'pending free' still, AFAIU. --YqVjBi0tQ7r7wVWr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlAi33sACgkQC3+MBN1Mb4gTmQCcDUq4xjyvVPT9BzRykY82XQel kgIAniCXmwuYnq6wMsYzEY/5JzRqLxTa =CTrb -----END PGP SIGNATURE----- --YqVjBi0tQ7r7wVWr--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120808215155.GP2676>