From owner-svn-src-head@freebsd.org Fri Nov 3 14:23:13 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7763DE538A0 for ; Fri, 3 Nov 2017 14:23:13 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:375::1:5]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3D6BB666DD; Fri, 3 Nov 2017 14:23:13 +0000 (UTC) (envelope-from Alexander@leidinger.net) Date: Fri, 03 Nov 2017 15:22:49 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1509718989; bh=cHbm8Ml3pGGk/GM0IgmGECBIJMquo7jvhqbDuXxiySM=; h=Date:From:To:Cc:Subject:In-Reply-To; b=vsADfLuxZzRDCzSOMQgTaOzPHqM+jWXFyl0tr1eYvBrQFcoaeg4auOIfwNeVORK43 3jdwljTSBL5OqHDsSvbAt4GD9A2r33S04C/BODprIiLGYjwNDDpSEHKRaF2Nuhtklb Qbj4VwWdSAbSOSPZbfeNnRHni9tgJXhJbFj4kzM27NIiL1DOSSTO6qMt1VioSF+6rp K3n0BboheCSm90jLGqX2m9frmNYbnizH892bh33NfniVssbWnTRQpiaZ824Cu3iR+3 Rnuu0RuP7au2KApiCJsgaQn6MyiMkTOktrAKh1ucC9zrfdQUyflMzNa3ArXSoiM8KQ J/qvpsdCCmapw== Message-ID: <20171103152249.Horde.GhFLgOI9qGzukB248GjNGNm@webmail.leidinger.net> From: Alexander Leidinger To: Vladimir Kondratyev Cc: src-committers@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r325294 - head/sys/dev/evdev In-Reply-To: <201711012209.vA1M9AXO044032@repo.freebsd.org> User-Agent: Horde Application Framework 5 Content-Type: multipart/signed; boundary="=_3hMw6hpXv_ZG13kmytzvNLD"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2017 14:23:13 -0000 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 (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--