From owner-cvs-src@FreeBSD.ORG Mon Dec 31 21:12:05 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3E2F16A418; Mon, 31 Dec 2007 21:12:05 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8CDDA13C45B; Mon, 31 Dec 2007 21:12:05 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lBVLC5Aw063448; Mon, 31 Dec 2007 21:12:05 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBVLC5Yh063447; Mon, 31 Dec 2007 21:12:05 GMT (envelope-from jhb) Message-Id: <200712312112.lBVLC5Yh063447@repoman.freebsd.org> From: John Baldwin Date: Mon, 31 Dec 2007 21:12:05 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/sys sysctl.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2007 21:12:05 -0000 jhb 2007-12-31 21:12:05 UTC FreeBSD src repository Modified files: sys/sys sysctl.h Log: Add very basic support for the kernel to export a list of features. Each feature is represented by a node in the new 'kern.features' sysctl node. A feature is present if the corresponding node is present and evaluates to true. A FEATURE() wrapper macro is added which takes the sysctl node name and a description of the feature as the sole arguments and creates a read-only sysctl node with a value of 1. Discussed on: arch Revision Changes Path 1.155 +8 -0 src/sys/sys/sysctl.h