tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
NetBSD 5.0.1 and kmods
Hi,
I'm having some minor trouble upgrading my I4B software to use the new
bsd.kmodule.mk and associated i4b.kmod output.
1) How can I dynamically load such a module at runtime?
I tried to edit boot.cfg and add "load i4b". It prints out during boot:
Loaded i4b
But the callbacks in my code (see below) are not getting called!
Where should I start looking?
--HPS
MODULE(MODULE_CLASS_DRIVER, i4b, NULL);
static int
i4b_modcmd(modcmd_t cmd, void *arg)
{
switch (cmd) {
case MODULE_CMD_INIT:
return (load(0,0));
case MODULE_CMD_FINI:
return (unload(0,0));
default:
return (ENOTTY);
}
}
Home |
Main Index |
Thread Index |
Old Index