Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 May 2006 14:39:57 +0400
From:      "Yuriy Tsibizov" <Yuriy.Tsibizov@gfk.ru>
To:        "Warner Losh" <imp@bsdimp.com>, <scottl@samsco.org>
Cc:        freebsd-multimedia@FreeBSD.org, des@des.no, freebsd-current@FreeBSD.org, Alexander@Leidinger.net
Subject:   RE: Call for testing: emu10kx driver for Creative sound cards
Message-ID:  <D6B2C454E5A77B4D8DA0B863D3D6D492CC3458@demon.hhp.local>

next in thread | raw e-mail | index | archive | help
> + .Pp
> + Sysctl nodes provided by drivers should not be considered to be
> + permanant unless they are documented in the driver's man page.
> + Names which start with _ denote a tree or node which is considered
> + impermanant and should not be relied up by code elsewhere in the
> + system.
> + Driver writers should use the sysctl infrastructure provided by
> + .Xr device_get_sysctl_ctx 9=20
> + and
> + .Xr device_get_sysctl_tree 9
> + for their sysctls.
> + Drivers should migrate from past interfaces to this new=20
> interface, but
> + provide, where needed, backwards compatibility shims.
> + These facilities export the sysctl as=20
> dev.<driver-name>.<unit>.attribute.

Should sound drivers (pcm* device) be documented as an exception from =
this?=20
They use snd_sysctl_tree_top() to get tree OID under hw.snd.pcmX and=20
snd_sysctl_tree() to get their context.

Yuriy.




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