From owner-freebsd-stable@FreeBSD.ORG Tue Jul 15 13:30:36 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9151837B401 for ; Tue, 15 Jul 2003 13:30:36 -0700 (PDT) Received: from genius.tao.org.uk (genius.tao.org.uk [212.135.162.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id D820843FAF for ; Tue, 15 Jul 2003 13:30:35 -0700 (PDT) (envelope-from joe@genius.tao.org.uk) Received: by genius.tao.org.uk (Postfix, from userid 100) id 886194476; Tue, 15 Jul 2003 21:30:22 +0100 (BST) Date: Tue, 15 Jul 2003 21:30:22 +0100 From: Josef Karthauser To: Dmitry Morozovsky Message-ID: <20030715203022.GB39304@genius.tao.org.uk> Mail-Followup-To: Josef Karthauser , Dmitry Morozovsky , stable@freebsd.org References: <20030712204434.Y74361@woozle.rinet.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TakKZr9L6Hm6aLOc" Content-Disposition: inline In-Reply-To: <20030712204434.Y74361@woozle.rinet.ru> User-Agent: Mutt/1.5.4i cc: stable@freebsd.org Subject: Re: usb.ko is unloadable? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 20:30:36 -0000 --TakKZr9L6Hm6aLOc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 12, 2003 at 08:50:43PM +0400, Dmitry Morozovsky wrote: > Dear colleagues, >=20 > I'm planning to debug usb connection with my new SONY CLIE handheld, and = found > that this process is much complicated by the fact usb.ko module can not be > unloaded 'cause some process is referencing it: >=20 > marck@revamp:~/tmp> kldstat -v -i 11 > Id Refs Address Size Name > 11 1 0xc0cf7000 1b000 usb.ko > Contains modules: > Id Name > 62 usb/uhub > 63 uhub/uhub > 64 ohci/usb > 65 uhci/usb > 66 pci/uhci > 67 pci/ohci >=20 > (usbd has been killed, surely) >=20 > marck@revamp:~/tmp> dmesg | grep -i usb > pci0: (vendor=3D0x8086, dev=3D0= x7112) at 7.2 irq 11 > uhci0: port 0xe000-0xe01f irq 1= 1 at device 7.2 on pci0 > usb0: on uhci0 > usb0: USB revision 1.0 >=20 > Who is referencing usb.ko? >=20 > I'm on 4.8-R/4.8-STABLE. >=20 > Thanks in advance, and have a nice weekend. The usb module won't unload intentionally because we're not convinced that it correctly give back all allocated memory. Take a look at the unload code in the driver source for confirmation. Joe --=20 Josef Karthauser (joe@tao.org.uk) http://www.josef-k.net/ FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/ Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D An eclectic mix of fact an= d theory. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --TakKZr9L6Hm6aLOc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iEYEARECAAYFAj8UZF4ACgkQXVIcjOaxUBZUYQCeMl2A5aX740XdyqaPg60D+J+w 8kYAoNEOhfRKIHkMIG1PCHSVQ0Pq8Eyl =NyW2 -----END PGP SIGNATURE----- --TakKZr9L6Hm6aLOc--