Checking for other kernel modules on load

Kostik Belousov kostikbel at gmail.com
Wed Dec 28 14:36:14 UTC 2011


On Wed, Dec 28, 2011 at 12:23:58PM +0000, Chris Rees wrote:
> On 28 December 2011 12:21, Daniel O'Connor <doconnor at gsoft.com.au> wrote:
> >
> > On 28/12/2011, at 22:07, Chris Rees wrote:
> >> Is there a simple way to check for existence of a driver?  I 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.
Obvious question is what the panic is. Checking for modules loaded is
papering over some issue.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20111228/3f64f748/attachment.pgp


More information about the freebsd-hackers mailing list