svn commit: r325294 - head/sys/dev/evdev

Alexander Leidinger Alexander at leidinger.net
Fri Nov 3 14:23:13 UTC 2017


Quoting Vladimir Kondratyev <wulf at 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 Alexander at Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild at FreeBSD.org  : PGP 0x8F31830F9F2772BF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20171103/a94f9c51/attachment.sig>


More information about the svn-src-head mailing list