Re: Modules and sysctl tree

1999-12-12 Thread Ollivier Robert
According to Garrett Wollman: > It's listening on a kernel notification socket. (Implementation is an > exercise left for the reader, but there are already a few examples.) Like the routing socket I guess ? Or we could implement POLLSYSCTL ? :-) /me hides and runs -- Ollivier ROBERT -=- Free

Re: Modules and sysctl tree

1999-12-12 Thread Marcel Moolenaar
"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 h

Re: Modules and sysctl tree

1999-12-12 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Jul ian Elischer writes: [sysctlfs] >Linux have basically done this in their procfs. And have recently started to wonder if that wasn't a mistake I've heard. I would regard sysctlfs as a grave mistake. -- Poul-Henning Kamp FreeBSD coreteam member [E

Re: Modules and sysctl tree

1999-12-11 Thread Kris Kennaway
On Sat, 11 Dec 1999, Julian Elischer wrote: > Linux have basically done this in their procfs. If we're looking for a gross hack, we need look no further :-) Kris To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message

Re: Modules and sysctl tree

1999-12-11 Thread Julian Elischer
Linux have basically done this in their procfs. On Sat, 11 Dec 1999, Jordan K. Hubbard wrote: > > Use a similar hack: map the sysctl tree to the filesystem (ala kernfs) and > > then stat the directory nodes. > > AAIEE! sysctlfs!! :-) > > It's an interesting idea and I'm not sure why it a

Re: Modules and sysctl tree

1999-12-11 Thread Jeroen C. van Gelderen
"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 h

Re: Modules and sysctl tree

1999-12-11 Thread Garrett Wollman
< said: > 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? It's listening on a kernel notification socket. (Implementation is an exercise left for the reader, but

Re: Modules and sysctl tree

1999-12-11 Thread Jordan K. Hubbard
> Use a similar hack: map the sysctl tree to the filesystem (ala kernfs) and > then stat the directory nodes. AAIEE! sysctlfs!! :-) It's an interesting idea and I'm not sure why it also horrifies me at some inner, almost cellular, level. If somebody's actually willing to do the work of cre

Re: Modules and sysctl tree

1999-12-11 Thread Jordan K. Hubbard
> 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, no de > added, node removed, etc. However, it is a gross hack. You're right, it would be a gross hack. :) Also, I can see where it would b

Re: Modules and sysctl tree

1999-12-11 Thread John Robert LoVerso
> other than walking the sysctl tree regularly looking for changes Use a similar hack: map the sysctl tree to the filesystem (ala kernfs) and then stat the directory nodes. John To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message

Re: Modules and sysctl tree

1999-12-11 Thread John Baldwin
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

Re: Modules and sysctl tree

1999-12-11 Thread Jordan K. Hubbard
> 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 dyn

Re: Modules and sysctl tree

1999-12-11 Thread Archie Cobbs
Jordan K. Hubbard writes: > > I think the latter. In 'theory' there should be no discernable > > difference between functionality from a KLD vs. the same functionality > > compiled directly into the kernel. > > Only in theory, of course. :) > > As Andrzej has already pointed out, modules can als

Re: Modules and sysctl tree

1999-12-11 Thread Jordan K. Hubbard
> I think the latter. In 'theory' there should be no discernable > difference between functionality from a KLD vs. the same functionality > compiled directly into the kernel. Only in theory, of course. :) As Andrzej has already pointed out, modules can also be loaded and unloaded, creating a sys

Re: Modules and sysctl tree

1999-12-10 Thread Archie Cobbs
Andrzej Bialecki writes: > > KLD's are just a linking mechanism, and shouldn't have any more > > significance than that from a usability perspective. > > Hah. If it were so simple... > > Let's take the example of a module foo, which provides unique features of > bar and baz. They are unrelated t

Re: Modules and sysctl tree

1999-12-10 Thread Andrzej Bialecki
On Thu, 9 Dec 1999, Archie Cobbs wrote: > Andrzej Bialecki writes: > > I'd like to know whether we reached some conclusions concerning the naming > > of sysctl variables created (or related to) KLDs. I know that Linux > > emulator creates "compat.linux". I don't know if any other module creates >

Re: Modules and sysctl tree

1999-12-09 Thread Archie Cobbs
Andrzej Bialecki writes: > I'd like to know whether we reached some conclusions concerning the naming > of sysctl variables created (or related to) KLDs. I know that Linux > emulator creates "compat.linux". I don't know if any other module creates > sysctls (well, except my SPY module.. :-). > >

Modules and sysctl tree

1999-12-09 Thread Andrzej Bialecki
Hi, I'd like to know whether we reached some conclusions concerning the naming of sysctl variables created (or related to) KLDs. I know that Linux emulator creates "compat.linux". I don't know if any other module creates sysctls (well, except my SPY module.. :-). So, what is the current thinking