Re: c++ module support?

James Mastros (root@jennifer-unix.dyn.ml.org)
Tue, 24 Mar 1998 22:24:50 -0500 (EST)


On 24 Mar 1998, Neal Becker wrote:
> Can kernel modules be written in c++? Are there any known
> restrictions? (Other than the init_module must be declared extern C).

The kernel (and insmod) don't care what language the module is written in
(as far as it knows, you could have typed the bytecode into a hex-editor)
-- so long as it is validly executable bytecode, and all data passed back
and forth is in the format that the kernel expects it (note that all
functions that you give out pointers to are going to need to be extern c.)

-=- James Mastros

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu