Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Nov 2017 15:22:49 +0100
From:      Alexander Leidinger <Alexander@leidinger.net>
To:        Vladimir Kondratyev <wulf@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r325294 - head/sys/dev/evdev
Message-ID:  <20171103152249.Horde.GhFLgOI9qGzukB248GjNGNm@webmail.leidinger.net>
In-Reply-To: <201711012209.vA1M9AXO044032@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

Quoting Vladimir Kondratyev <wulf@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@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJZ/Hu5AAoJEKrxQhqFIICEOAoP/A7ylkK+k3UxSEQ0Ss2cm1un
JdssTqM5oZFB7JC5zIFzzdKZjg3DgAWEJvrx/yoF8XwoQc/SrxIrq0YQ53G03NTY
VvR9Q39yKBpDoyWGHGUcNzkJlU66Nw/tZwQ/xR764TiS2oafSOx3fdlrXE9F8mCH
0RytyNf8FFkU5laKsaxU9ZETx0dXJyNfVjOClb0AM/h94iAJV7bW0NkNxx9l47RK
6QRzTejb7Fj7vus8J3QE8Pv2L8KzqvyWR+216yy8pqwuf/qCqWsC+l7VGS0Haimv
/MDH/KVmejHymF0qZJQprv+Kp+Gk0E712OTs/y/uRC5TaipJLtXJ2B+GLOfKvcs7
qzhCSSjkk2YzJ+Nc1YCpoZMrlCrFf8zH1ma8zexM5gHWjNpjRQSEmEMIdo6mySWy
sxZZa98/gZGxuNH+grKreLHoVbHpVPddbB5qWZUCljjR3FsxIpvBm+x/stMptFyM
8rW+x3rE6OEFVljBZ8r9V7VMnsvZO6f6vQe5fOCPfBW3NvDDA0atTDEqtshZCFtC
eE5AvfEw+J7zqUFztQ72CQH6mDzSwhuq2P/ER+fgP+OOpG8Q1o/54tCVqhHt5kjM
UqAdkFdNygsueISnr4O23K8YbCpODzX5CjP6EliPt7MkY/b8CNHgozak/1laD0If
tDtan6DOxzQpIa7KCM+M
=/cVy
-----END PGP SIGNATURE-----

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