* FW: Linux device driver using c++!
@ 2004-02-01 13:07 Jinu M.
0 siblings, 0 replies; 2+ messages in thread
From: Jinu M. @ 2004-02-01 13:07 UTC (permalink / raw)
To: linux-kernel
Is there someway I can make use of a OS independent C++ code. This code has classes, new, delete etc.. My plan was to build a static library using the C++ code and then write a simple OS interface module which has the init, cleanup, read, write, ioctl etc but calls C++ functions in the library.
Is this scenario possible?
-Jinu
-----Original Message-----
From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Måns Rullgård
Sent: Sunday, February 01, 2004 6:32 PM
To: linux-kernel@vger.kernel.org
Subject: Re: Linux device driver using c++!
"Jinu M." <jinum@esntechnologies.co.in> writes:
> I am new to Linux based device driver development. I wanted to know
> if it is possible to write a Linux device driver (kernel loadable
> module) using C++.
It's impossible.
--
Måns Rullgård
mru@kth.se
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
* re: FW: Linux device driver using c++!
@ 2004-02-01 15:01 Dan Kegel
0 siblings, 0 replies; 2+ messages in thread
From: Dan Kegel @ 2004-02-01 15:01 UTC (permalink / raw)
To: linux-kernel, jinum
Jinu wrote:
> Is there someway I can make use of a OS independent C++ code. This code has classes,
> new, delete etc.. My plan was to build a static library using the C++ code and then
> write a simple OS interface module which has the init, cleanup, read, write, ioctl
> etc but calls C++ functions in the library.
>
> Is this scenario possible?
Sure, just port it to C.
Seriously, you can do it in C++, but you'll hate yourself
afterwards, and nobody in the Linux community will support
you when you have problems. C++ just does not mix well
with the Linux kernel. This is not a shortcoming of the
Linux kernel; this is a fairly well-founded design decision,
discussed to death once every six months.
If you do decide to pursue it, do it in a way that does
not require any patches to the kernel source, and please
do NOT submit any patches related to this to the linux kernel mailing list.
- Dan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-01 15:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-01 15:01 FW: Linux device driver using c++! Dan Kegel
-- strict thread matches above, loose matches on Subject: below --
2004-02-01 13:07 Jinu M.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox