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
This message is in MIME format and has been PGP signed. --=_3hMw6hpXv_ZG13kmytzvNLD Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Vladimir Kondratyev <wulf@freebsd.org> (from Wed, 1 Nov 2017=20=20 22:09:10=20+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=20=20 the=20FEATURE() macro for this. It's in sys/sysctl.h and you can use it=20= =20 like: =20 FEATURE(evdev, "evdev protocol support"); You can then query it either via "sysctl kern.features.evdev" or via=20=20 the=20"feature_present()" function in libc. Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_3hMw6hpXv_ZG13kmytzvNLD Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----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----- --=_3hMw6hpXv_ZG13kmytzvNLD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171103152249.Horde.GhFLgOI9qGzukB248GjNGNm>