Date: Tue, 15 Jul 2003 21:30:22 +0100 From: Josef Karthauser <joe@FreeBSD.org> To: Dmitry Morozovsky <marck@rinet.ru> Cc: stable@freebsd.org Subject: Re: usb.ko is unloadable? Message-ID: <20030715203022.GB39304@genius.tao.org.uk> In-Reply-To: <20030712204434.Y74361@woozle.rinet.ru> References: <20030712204434.Y74361@woozle.rinet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--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: <Intel 82371AB/EB (PIIX4) USB controller> (vendor=3D0x8086, dev=3D0= x7112) at 7.2 irq 11 > uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xe000-0xe01f irq 1= 1 at device 7.2 on pci0 > usb0: <Intel 82371AB/EB (PIIX4) USB controller> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030715203022.GB39304>