From owner-freebsd-arch@FreeBSD.ORG Tue Aug 16 13:33:34 2005 Return-Path: X-Original-To: freebsd-arch@FreeBSD.org Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E59616A420 for ; Tue, 16 Aug 2005 13:33:34 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id D712743D5A for ; Tue, 16 Aug 2005 13:33:31 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 9E8DE52C7E; Tue, 16 Aug 2005 15:33:28 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id B6C6852C3F; Tue, 16 Aug 2005 15:33:16 +0200 (CEST) Date: Tue, 16 Aug 2005 15:33:07 +0200 From: Pawel Jakub Dawidek To: Bruce Evans Message-ID: <20050816133307.GD3944@garage.freebsd.pl> References: <20050816221033.C47830@delplex.bde.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T6xhMxlHU34Bk0ad" Content-Disposition: inline In-Reply-To: <20050816221033.C47830@delplex.bde.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng devel (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: m.ehinger@ltur.de, freebsd-arch@FreeBSD.org Subject: Re: sysctl_proc calls handler twice 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: Tue, 16 Aug 2005 13:33:34 -0000 --T6xhMxlHU34Bk0ad Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 16, 2005 at 11:17:21PM +1000, Bruce Evans wrote: +> No, just don't call it twice like sysctl(8) if you know the size in adva= nce +> or from a previous call (and know that it won't change or handle the err= or +> from it changing...). Thread's author, as I understand/guess it, represents kernel side. He doesn't want his handler to be called twice and tools like sysctl(8) are not able to know size of every sysctl, so he just has to be ready that his handler will be called twice. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --T6xhMxlHU34Bk0ad Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDAesTForvXbEpPzQRAljFAJ4vMsSlgjczWLL9+AHtGZ3hxu8YHgCcDnog 7hJ5tcPSKmQV12DkE6TsU+M= =8MMb -----END PGP SIGNATURE----- --T6xhMxlHU34Bk0ad--