From owner-cvs-all Sat Jul 15 3:26:13 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id E549237C20B; Sat, 15 Jul 2000 03:26:04 -0700 (PDT) (envelope-from abial@FreeBSD.org) Received: (from abial@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA20803; Sat, 15 Jul 2000 03:26:04 -0700 (PDT) (envelope-from abial@FreeBSD.org) Message-Id: <200007151026.DAA20803@freefall.freebsd.org> From: Andrzej Bialecki Date: Sat, 15 Jul 2000 03:26:04 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/share/examples/kld Makefile src/share/examples/kld/dyn_sysctl Makefile README dyn_sysctl.c src/share/man/man9 sysctl_add_oid.9 sysctl_ctx_init.9 Makefile src/sys/kern kern_sysctl.c src/sys/sys sysctl.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG abial 2000/07/15 03:26:04 PDT Modified files: share/examples/kld Makefile share/man/man9 Makefile sys/kern kern_sysctl.c sys/sys sysctl.h Added files: share/examples/kld/dyn_sysctl Makefile README dyn_sysctl.c share/man/man9 sysctl_add_oid.9 sysctl_ctx_init.9 Log: These patches implement dynamic sysctls. It's possible now to add and remove sysctl oids at will during runtime - they don't rely on linker sets. Also, the node oids can be referenced by more than one kernel user, which means that it's possible to create partially overlapping trees. Add sysctl contexts to help programmers manage multiple dynamic oids in convenient way. Please see the manpages for detailed discussion, and example module for typical use. This work is based on ideas and code snippets coming from many people, among them: Arun Sharma, Jonathan Lemon, Doug Rabson, Brian Feldman, Kelly Yancey, Poul-Henning Kamp and others. I'd like to specially thank Brian Feldman for detailed review and style fixes. PR: kern/16928 Reviewed by: dfr, green, phk Revision Changes Path 1.3 +3 -1 src/share/examples/kld/Makefile 1.70 +19 -2 src/share/man/man9/Makefile 1.99 +253 -1 src/sys/kern/kern_sysctl.c 1.87 +78 -2 src/sys/sys/sysctl.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message