From owner-svn-src-user@FreeBSD.ORG Tue Nov 1 03:53:11 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BC971065670; Tue, 1 Nov 2011 03:53:11 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2BB928FC13; Tue, 1 Nov 2011 03:53:11 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pA13rBw0047501; Tue, 1 Nov 2011 03:53:11 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA13rBAb047499; Tue, 1 Nov 2011 03:53:11 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201111010353.pA13rBAb047499@svn.freebsd.org> From: Attilio Rao Date: Tue, 1 Nov 2011 03:53:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r226981 - user/attilio/vmcontention/sys/vm X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2011 03:53:11 -0000 Author: attilio Date: Tue Nov 1 03:53:10 2011 New Revision: 226981 URL: http://svn.freebsd.org/changeset/base/226981 Log: Add kernel protection to the header file for vmradix. Likely this file needs some more restructuration (and we should make a lot of macros private to radix implementation) but leave them as they are so far because we may enrich the KPI much further. Modified: user/attilio/vmcontention/sys/vm/vm_radix.h Modified: user/attilio/vmcontention/sys/vm/vm_radix.h ============================================================================== --- user/attilio/vmcontention/sys/vm/vm_radix.h Tue Nov 1 03:40:38 2011 (r226980) +++ user/attilio/vmcontention/sys/vm/vm_radix.h Tue Nov 1 03:53:10 2011 (r226981) @@ -50,6 +50,8 @@ CTASSERT(VM_RADIX_HEIGHT >= VM_RADIX_LIM ((h) == VM_RADIX_LIMIT ? ((vm_pindex_t)-1) : \ (((vm_pindex_t)1 << ((h) * VM_RADIX_WIDTH)) - 1)) +#ifdef _KERNEL + struct vm_radix_node { void *rn_child[VM_RADIX_COUNT]; /* child nodes. */ uint16_t rn_count; /* Valid children. */ @@ -97,4 +99,5 @@ vm_radix_lookup_ge(struct vm_radix *rtre return (NULL); } +#endif /* _KERNEL */ #endif /* !_VM_RADIX_H_ */