Quoting Vladimir Kondratyev <w...@freebsd.org> (from Wed, 1 Nov 2017 22:09:10 +0000 (UTC)):
Author: wulf Date: Wed Nov 1 22:09:10 2017 New Revision: 325294 URL: https://svnweb.freebsd.org/changeset/base/325294 Log: evdev: Hide "kern.evdev.rcpt_mask" sysctl if kernel is compiled w/o EVDEV_SUPPORT as it's value has no meaning in this case. Now presence of this sysctl can be used for discovery if evdev support for hybrid devices is compiled into kernel or not.
If you want to show the presence of a feature in the kernel: we have the FEATURE() macro for this. It's in sys/sysctl.h and you can use it like:
FEATURE(evdev, "evdev protocol support");You can then query it either via "sysctl kern.features.evdev" or via the "feature_present()" function in libc.
Bye, Alexander. -- http://www.Leidinger.net alexan...@leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netch...@freebsd.org : PGP 0x8F31830F9F2772BF
pgpNRfEQIV8rL.pgp
Description: Digitale PGP-Signatur