From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 28 12:24:29 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 0C689106564A for ; Wed, 28 Dec 2011 12:24:29 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id CD1D28FC15 for ; Wed, 28 Dec 2011 12:24:28 +0000 (UTC) Received: by iadj38 with SMTP id j38so27281921iad.13 for ; Wed, 28 Dec 2011 04:24:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=VP7z7F+wXRnykDC1yOc5vDlhxRS1vfM8wr3VLuNEbgM=; b=x6HU8K9Uxpk3a1OfcL0J6tfB5+j6np101fYuRXVZ/cFrEzgtcMYfmypxZzLjdFEfqM /5MpB9SU+UEnj/Fo5AA9bTMDb3jvU9551MdseRpvekUVmWLujgth8A65oALDd+y9Ep76 Sb48dRTazuM9lGxReLMaBx3JHCJLzkpbRMygM= Received: by 10.50.77.227 with SMTP id v3mr35091467igw.8.1325075068290; Wed, 28 Dec 2011 04:24:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.207.7 with HTTP; Wed, 28 Dec 2011 04:23:58 -0800 (PST) In-Reply-To: References: From: Chris Rees Date: Wed, 28 Dec 2011 12:23:58 +0000 Message-ID: To: "Daniel O'Connor" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 12:24:29 -0000 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? =A0I 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. > Cheers-- I was thinking of a kernel-level function though. cognet@ suggested using modfind("sound"), I'll go with that. Thanks! Chris