From owner-freebsd-arch@FreeBSD.ORG Fri Jan 21 12:12:46 2011 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 263D31065670 for ; Fri, 21 Jan 2011 12:12:46 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id D58DE8FC0C for ; Fri, 21 Jan 2011 12:12:45 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 385491FFC36; Fri, 21 Jan 2011 12:04:40 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 10F708457B; Fri, 21 Jan 2011 13:04:40 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: mdf@FreeBSD.org References: Date: Fri, 21 Jan 2011 13:04:39 +0100 In-Reply-To: (mdf@freebsd.org's message of "Sat, 15 Jan 2011 16:12:45 -0800") Message-ID: <86hbd2bgyw.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Arch Subject: Re: Automagic SYSCTLs X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2011 12:12:46 -0000 mdf@FreeBSD.org writes: > The gist is that the handler knows the sizeof the variable in the > kernel and uses this to copy out. For the case of a long, there's > some goop for SCTL_MASK32. For the case of 8 and 16 bit variables, > they are still copied in and out as 32-bit quantities. The inevitable question: - does this break the KBI? (I assume it does, almost inevitably) - does this break the ABI? (I hope it does not) I'm in favor of the principle, what we have now is a mess. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no