Date: Sat, 8 Jul 2000 04:32:55 +0200 (CEST) From: Andrzej Bialecki <abial@webgiro.com> To: freebsd-arch@freebsd.org Subject: UPDATE2: Dynamic sysctls Message-ID: <Pine.BSF.4.20.0007080426580.19255-100000@mx.webgiro.com>
next in thread | raw e-mail | index | archive | help
Hi again, I received many useful comments regarding previous version, and made some changes in functionality. The latest patches can be found at: http://www.freebsd.org/~abial/dyn_sysctl-070700.tgz These patches provide support for fully dynamic sysctl manipulation. You can create and delete new sysctl_oid's at run time. There is also a framework to help you keep track of already created oids (called 'context'). With this version you can create new oids without using contexts, but it's easier to manage the oids if they are collected in context. The handling of improper attachments is working now as well. These patches require fresh -current (as of 5-7 July 2000). You need to patch your /sys, then rebuild the kernel and restart with it. Then you should be able to load and unload example module that adds a couple of sysctl oids to the tree (check with sysctl -a). The example module creates partially overlapping subtrees to demonstrate reference counting. It also contains example of attaching a subtree to the wrong place, i.e. to a dynamic oid that could belong to someone else. The framework should deal with this case gracefully. I received many helpful comments, ideas and code snippets from the following people (in no particular order): Arun Sharma, Jonathan Lemon, Doug Rabson, Brian Feldman, Kelly Yancey and others. Thank you, guys! Andrzej Bialecki // <abial@webgiro.com> WebGiro AB, Sweden (http://www.webgiro.com) // ------------------------------------------------------------------- // ------ FreeBSD: The Power to Serve. http://www.freebsd.org -------- // --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0007080426580.19255-100000>