Re: Calling module symbols from inside the kernel !

From: David Woodhouse (dwmw2@infradead.org)
Date: Tue Nov 07 2000 - 09:41:42 EST


bgerst@didntduck.org said:
> You will need to use a function pointer hook that the module fills in
> when it is loaded. For an example look at devpts_upcall_new and
> devpts_upcall_kill in fs/devpts/inode.c. The hooks are resident in
> the kernel and are exported so the module can see them. The caller
> then needs to check if the hook is null and optionally request the
> module be loaded.

get_module_symbol() does this for you without having to use such a hook

/me runs

:)

--
dwmw2

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



This archive was generated by hypermail 2b29 : Tue Nov 07 2000 - 21:00:22 EST