> David Howells <[EMAIL PROTECTED]> wrote:
> > Now there's an idea... have the kernel autoload modules based on a
> > particular syscall number being handled in that module. Madness
> > *grin*.

[EMAIL PROTECTED] said:
> No more madness than kmod loading a module called char-major-10-135
> for /dev/rtc.  Or code that uses modules.pcimap to work out which
> module to load for a PCI device.  Just teach kmod to load
> syscall-agent-86 if you want to get smart.

... and make it handle the use count on the module properly.

struct syscall {
        struct module *owner;
        int (*handler)();
        int whatever_other_random_thing_MIPS_keeps_in_syscall_table;
} syscall_table[__NR_syscalls]

Yeuch.


--
dwmw2


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to