RFC: Adding a hw.features[2] sysctl
Ivan Voras
ivoras at freebsd.org
Thu Jan 17 09:45:05 PST 2008
Igor Mozolevsky wrote:
> Would you need
> ...features=0x178bfbff
> ...features2=0x1
> ...amd.features=0xe2500800
> ...amd.features20x3; or
Please go this way because applications that care only about "features2"
will be unmoved if another manufacturer adds "features3" and
"features4". Programs made to depend on "features3" will simply get an
"not found" error at a system level when run on a machine that lacks
"features3", which is desirable and good design.
> I genuinely don't know (and don't have the time to work out) the
> actual overhead of a sysctl vs ioctl, so if someone knows please let
> me know :-)
Please don't start polluting /dev with info-only nodes. Sysctls are
designed exactly for that purpose.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080117/3c565381/signature.pgp
More information about the freebsd-current
mailing list