From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 28 14:36:14 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7D14106574B for ; Wed, 28 Dec 2011 14:36:14 +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 344668FC08 for ; Wed, 28 Dec 2011 14:36:13 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id pBSDug7p099088 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Dec 2011 15:56:42 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id pBSDufun008251; Wed, 28 Dec 2011 15:56:41 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id pBSDufxu008250; Wed, 28 Dec 2011 15:56:41 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 28 Dec 2011 15:56:41 +0200 From: Kostik Belousov To: Chris Rees Message-ID: <20111228135641.GV50300@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kfDFKqcrHLBvkXCZ" Content-Disposition: inline In-Reply-To: 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=-3.9 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: hackers@freebsd.org Subject: Re: Checking for other kernel modules on load X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2011 14:36:14 -0000 --kfDFKqcrHLBvkXCZ Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 28, 2011 at 12:23:58PM +0000, Chris Rees wrote: > On 28 December 2011 12:21, Daniel O'Connor wrote: > > > > On 28/12/2011, at 22:07, Chris Rees wrote: > >> Is there a simple way to check for existence of a driver? =9AI could > >> even check for /dev/sndstat, though that doesn't seem elegant to me... > > > > kldstat -v, but really /dev/sndstat seems simpler and just as effective. > > >=20 > Cheers-- I was thinking of a kernel-level function though. >=20 > cognet@ suggested using modfind("sound"), I'll go with that. Obvious question is what the panic is. Checking for modules loaded is papering over some issue. --kfDFKqcrHLBvkXCZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk77IBkACgkQC3+MBN1Mb4h/6QCgjo5nLrCT3ZHMWXokC1zEt2DE LOYAoIcgcJXyrjFDs9mhLvBzMLOuCkQM =Jg97 -----END PGP SIGNATURE----- --kfDFKqcrHLBvkXCZ--