Re: why not C

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



neo neo wrote:
hi,
This may be a foolish question, but is it possible to write a kernel modules
in C++.
Why C is used to code the linux kernel instead of C++ .Many
part of the Linux kernel are object oriented in nature. Why trying to make objects
using C? Or is it just because of historic reasons.
Thanking you in advance.
regards
san


This has been discussed serveral times in the LKML, you have the answer here:

http://www.tux.org/lkml/#s15-3

However, I know about a driver written partialy in C++:

The echoaudio cards alsa driver uses a patched version of the Generic OS-Independent provided by the manufacturer, which is coded in C++.

I have a Darla24 card, which is supported by the driver, and turst me, it works just great.

 For more details see:
http://space.virgilio.it/g_pochini@virgilio.it/ea.html




-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux