Working on better kerneld...

James Mastros (root@jennifer-unix.dyn.ml.org)
Sat, 6 Dec 1997 20:18:32 -0500 (EST)


Hi everybody, I'm Dr. Nick Riverara (SP?)!
(Hi Dr. Nick!) ("Simpsons" reference, of course.)

I'm working on better support for autoloading of modules (modular sound was
the imputeus, but what I'm doing is more general then that).

So, in increasing order of difficulty:
1) Does anybody know of a modutils (for 2.1.x) newer then modutils-2.1.55?

2) Does anybody know of any patches effecting module-autoloading (other then
the ones in modutils-foo/kerneld/GOODIES)?

3) Does anybody know why gcc gives the following errors compiling a clean
kerneld.c?

kerneld.c: In function 'main':
kerneld.c:807: incompatible types in assignment
kerneld.c:807: warning: left-hand operand of comma expression has no effect
kerneld.c:807: warning: statement with no effect

line 807 is:
sigemptyset(&holdsignals);
(yes, holdsignals is sidset_t, not int)
(I'm compiling this on a Pentium, with libc5)

4) Does anybody know if there is a reason why we didn't pass the minor to
kerneld in the first place?

5) My current design is this:

1) In the kernel, change from sending a text of "char-major-foo", send
"char-major-foo-minor-bar". Same for block devices

2) In kerneld, first attempt to load the exact module passed from the
kernel. If that dosn't work, remove any "-minor-bar" suffix, and try
loading that. If _that_ dosn't work, report error back to the kernel
(if applicable).

Does anybody see any holes in that?

-=- James Mastros
---
When the annals of distributed computing are written, and the name 'Bovine'
appears in there, I can say "Hey, I was a part of that, I checked .0012% of
the keyspace!"
-=- Brian Wilson <wilsonb@mindspring.net>
Go to www.distributed.net before I come make you!