Erik Mouw wrote:
> On Mon, Apr 09, 2001 at 06:36:37AM -0700, Deja User wrote:
> > Can I write a kernel driver using C++ classes.
>
> No.
>
> > Will the loader/insmod take care of calling the ctr for global
> > objects in that case.
>
> No.
>
> For a more elaborate argument why not, see question 1.4 from the
> linux-kernel mailing list FAQ: http://www.tux.org/lkml/#s1-4 .
>
> Erik
Since I walk in a few OS programming world... Apple has created
this 'thing' called IOKit which does implement a C++ environment
for drivers for their Mac OS X based on various pieces of *BSD.
One of the arguements put forth, is that this would allow for much
more 'flexiblity' in the future. However, it pretty much requires a
re-write of everything.
The two salient points are, in such an environment, unless there's
a 'legacy driver object', no old drivers really are usable. And two,
unless the 'open source' community takes up such a package,
there will be little 'feedback' of future drivers based on IOKit
(or equivalent...) into the community.
A couple of specific issues on C++ are, multiple inheritances,
and something really stupid, symbol name demangling....
I've been told that gcc 3, may define a name demangling
method in perpetuiti, but I'm not really knowledgeable in
those sorts of details, as I don't do much C++ programing
except when absolutely forced to.
_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.