From owner-freebsd-current@FreeBSD.ORG Wed Aug 8 21:52:05 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1AFF4106564A for ; Wed, 8 Aug 2012 21:52:05 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 6D4858FC17 for ; Wed, 8 Aug 2012 21:52:04 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q78Lq838002726; Thu, 9 Aug 2012 00:52:08 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q78Lptaa046604; Thu, 9 Aug 2012 00:51:55 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q78LptAu046603; Thu, 9 Aug 2012 00:51:55 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 9 Aug 2012 00:51:55 +0300 From: Konstantin Belousov To: Hans Petter Selasky Message-ID: <20120808215155.GP2676@deviant.kiev.zoral.com.ua> References: <20120801160323.GN2676@deviant.kiev.zoral.com.ua> <201208081827.53824.hselasky@c2i.net> <201208081942.24619.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YqVjBi0tQ7r7wVWr" Content-Disposition: inline In-Reply-To: <201208081942.24619.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Ed Schouten , freebsd-current@freebsd.org Subject: Re: ttydev_cdevsw has no d_purge X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2012 21:52:05 -0000 --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 : > > >> 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--