Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2006 20:10:04 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        John-Mark Gurney <gurney_j@resnet.uoregon.edu>
Cc:        multimedia@freebsd.org
Subject:   Re: drop snd_ from DRIVER_MODULEs...
Message-ID:  <20060419201004.45bf1c26@Magellan.Leidinger.net>
In-Reply-To: <20060419155819.GK38619@funkthat.com>
References:  <20060419110126.4iz4bj0x5wo4wwgk@netchild.homeip.net> <Pine.BSF.3.96.1060420001239.1746A-100000@gaia.nimnet.asn.au> <20060419155819.GK38619@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Am Wed, 19 Apr 2006 08:58:19 -0700
schrieb John-Mark Gurney <gurney_j@resnet.uoregon.edu>:

> # cat /dev/sndstat
> FreeBSD Audio Driver (newpcm)
> Installed devices:
> pcm0: <VIA VT82C686A> at io 0xcc00 irq 5 kld via82c686 (1p/1r/0v channels duplex default)
> 
> So, the file name is the same, the only real user difference from this
> change is that the cat /dev/sndstat says via82c686 instead of
> snd_via82c686...  This is from the PCM_KLDSTRING part of the patch, and
> I only changed it to match the kernel module name, so I don't have a
> preference as to if it changes or not...

I think sndstat should print the file name of the module. IIRC we refer
to this string in some docs and tell the user to use it as  to put
'<string>_load="YES"' into loader.conf.

So if you want to commit your patch, please change PCM_KDLSTRING in
src/sys/dev/sound/pcm/sound.h to
  #define PCM_KLDSTRING(a) ("kld snd_" # a)

> also, w/o this change I couldn't of loaded the module the way I did
> above, w/o the snd_ prefix...  It appears that kldunload doesn't
> reference the kldxref file as you can't unload by module name.. :(

Maybe another patch to do... or submit an entry for this to the ideas
list (http://www.freebsd.org/projects/ideas/). :-)

Bye,
Alexander.

-- 
Failure is not an option. It comes bundled with your Microsoft product.
http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7
WL http://www.amazon.de/exec/obidos/registry/1FZ4DTHQE9PQ8/ref=wl_em_to/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060419201004.45bf1c26>