Re: Call for testing: emu10kx driver for Creative sound cards

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Wed, 24 May 2006 16:38:37 +0200
"Yuriy Tsibizov" <Yuriy.Tsibizov_at_gfk.ru> writes:
> Should sound drivers (pcm* device) be documented as an exception
> from this?  They use snd_sysctl_tree_top() to get tree OID under
> hw.snd.pcmX and snd_sysctl_tree() to get their context.

They should probably switch to device_get_sysctl_*(), with some compat
glue to ease the transition.

If you remember to always pass the device's sysctl context to
SYSCTL_ADD_*() when you create the nodes, they will be GCed when the
device detaches (even if they are outside the device's sysctl subtree)

We should probably have per-class contexts as well, so stuff like
hw.snd.unit can be placed directly under dev.pcm.

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Wed May 24 2006 - 12:38:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:56 UTC