Re: your mail

Kevin Lentin (
Mon, 13 May 1996 14:56:21 +1000 (EST)

Jacek Zapala Wrote ...
> Some people (including me) complained about kerneld removing modules just
> after the last use. The problem is that kerneld remove the module after the
> time specified by the 'delay' parameter counting from _loading_ and not
> after the last use. Of course, it is so because kerneld has no idea, when
> the module was used after loading it.
> Couldn't we just send the appropriate message to kerneld when the filesystem
> is being mounted or /dev/fd0 opened ? The only thing we would have to do
> will be to add message sending in the places where kerneld is called to load
> the module. For example, we would have to change super.c from:

kerneld keeps track of the number of references to a module. It should be
counting time from when the reference count reaches 0. That is the time
that the last use finished. Nothing should need to be done in the kernel.

> What do you think about this idea? If you like it and there is nobody
> willing to implement it I can be a volunteer.

I don't believe it it necessary (and I doubt Linus would like it anyway -
to inform the kerneld every time any module does anything is very ugly).

[ Kevin Lentin                 |finger| ]
[    |for PGP public key block. Fingerprint | ]
[ Macintrash: 'Just say NO!'   |6024308DE1F84314  811B511DBA6FD596    | ]