On Mon, Apr 09, 2001 at 06:36:37AM -0700, Deja User wrote:
> Can I write a kernel driver using C++ classes.
> Will the loader/insmod take care of calling the ctr for global
> objects in that case.

In the past and present, and I'm sure future, people will try to use
C++ for Linux Kernel drivers.  However, currently the opinions of the
kernel developers at large is that their preferred language for kernel
development is C.  This means that they tend to use C++ reserved keywords
as identifiers (eg, "new"), which effectively prevents people from using
C++ with the kernel.

Discussion of this point in the past hasn't yet come to the point where
C++ is an acceptable language for kernel programming - in fact its one
of the guaranteed topics to cause flame wars on the main kernel list.

So, regretfully, the answer is that currently C++ can not be used with
the kernel for the time being (and the forseeable future).
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |        Russell King       [EMAIL PROTECTED]      --- ---
  | | | |            http://www.arm.linux.org.uk/            /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to