Date: Sat, 11 Dec 1999 17:02:40 -0500 (EST) From: John Baldwin <jhb@FreeBSD.org> To: "Jordan K. Hubbard" <jkh@zippy.cdrom.com> Cc: freebsd-current@FreeBSD.org, abial@webgiro.com, Archie Cobbs <archie@whistle.com> Subject: Re: Modules and sysctl tree Message-ID: <199912112202.RAA76379@server.baldwin.cx> In-Reply-To: <91986.944949603@zippy.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11-Dec-99 Jordan K. Hubbard wrote: >> In other words, it's not a problem specific to KLD's .. but >> it's still a problem :-) > > Which raises an important issue - other than walking the sysctl tree > regularly looking for changes, how does such an application become > aware that the sysctl space has changed? The same holds true for a > dynamic /dev, of course, though one assumes one can at least hack a > solution with devfs where you stat the directory and compare its > current mod time with a saved one, only walking the directory if you > see a change. I don't see any kind of mechanism for doing this > with sysctl, even as a gross hack. Perhaps a modtime on the sysctl tree as a gross hack? Inside of sysctl() and the SYSCTL() macros you would update the time every time a write was made, node added, node removed, etc. However, it is a gross hack. > - Jordan -- John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912112202.RAA76379>