Date: Wed, 17 Jan 2001 01:25:43 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: bright@wintelcom.net (Alfred Perlstein) Cc: mckusick@mckusick.com (Kirk McKusick), arch@FreeBSD.ORG Subject: Re: dynamic vs static sysctls? Message-ID: <200101170125.SAA19549@usr08.primenet.com> In-Reply-To: <20010115223342.L7240@fw.wintelcom.net> from "Alfred Perlstein" at Jan 15, 2001 10:33:42 PM
next in thread | previous in thread | raw e-mail | index | archive | help
> I like this optimization, the only problem is that there's a chance > that a dynamic sysctl may disapear out from under you, and even > worse, replaced by an unrelated writeable one. > > Perhaps you should include a generation count within the sysctl to > prevent this sort of potential problem? So besideds passing the > sysctl number, you would include a generation count and error out > if both numbers didn't match? Dynamically created OIDs should: 1) Monotonically increase 2) Be illegal to cache over reboots 3) Reset on reboots Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. 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?200101170125.SAA19549>