On Wed, Jun 25, 2003 at 02:23:42PM -0400, Shan Sinha wrote: > If I write a loadable kernel module that has some functions I want to > export to the kernel, how do I call them from the kernel? Function pointers, and an in-kernel function to register the function pointers. Then, your module's init code registers function pointers, the module's exit code sets them back to no-ops, or NULL, or something like that. (If you use NULL, then your call sites in the kernel's networking paths should probably do something like: if (*fp) fp(args);) -- "Soon everyone will have an SUV, making roads obsolete and saving millions in highway costs." -- Mo Rocca
Attachment:
pgp00463.pgp
Description: PGP signature