From owner-cvs-all Wed May 30 16:34: 2 2001 Delivered-To: cvs-all@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 8455537B423; Wed, 30 May 2001 16:33:55 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id f4UNXgb05887; Wed, 30 May 2001 16:33:42 -0700 Date: Wed, 30 May 2001 16:33:42 -0700 From: Brooks Davis To: Sheldon Hearn Cc: Jesper Skriver , Greg Lehey , Dima Dorfman , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: Documenting sysctls (was: cvs commit: src/sbin/sysctl sysctl.8) Message-ID: <20010530163342.A3209@Odin.AC.HMC.Edu> References: <20010531003943.E78414@skriver.dk> <25323.991263026@axl.fw.uunet.co.za> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <25323.991263026@axl.fw.uunet.co.za>; from sheldonh@starjuice.net on Thu, May 31, 2001 at 12:50:26AM +0200 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 31, 2001 at 12:50:26AM +0200, Sheldon Hearn wrote: > Last time this came up, there were two schools of thought: >=20 > 1) Document all the sysctls in one place so they're easy to find. >=20 > 2) Document each sysctl in the documentation for the device that it > controls. >=20 > The second option is great for thorough documentation, because it means > that the description can rely on the surrounding text of the manual > page. The problem is that not all sysctl's belong to a specific device. >=20 > I think a balance can be struck, where sysctls that belong to a device > are documented in the documentation for that device, while sysctls that > don't can be documented in sysctl(8) (or some other common place). I think all sysctls need to be listed somewhere so you can find the documentation for them. That documentation doesn't have to live in that location, but we really do need some sort of index of sysctl documentation since the man system provides not real practical fulltext search mechanism. I would suggest that all sysctls should have an entry appear in sysctl(8). In the case of sysctls with no other logical place for documentation it should be documentation. For things like the ioctls documented in tcp(4) it should just say "see tcp(4)". It will have the worlds longest SEE ALSO section, but at least that would mean there would be a way to find an answer to those questions like: "I wonder what hw.foo.bar.baz does?" This seems like a reasionable compromise. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --17pEHd4RhPHOinZp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7FYNWXY6L6fI4GtQRAhA0AJ9PXaHbFOLAIhNxaW96r2C9Nt1hQQCg1qQK 3JyXu43fy/k25iZ9w/jUUzU= =srb1 -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message