From: Dan Kegel <dank@kegel.com>
To: linux-kernel@vger.kernel.org, jinum@esntechnologies.co.in
Subject: re: FW: Linux device driver using c++!
Date: Sun, 01 Feb 2004 07:01:15 -0800 [thread overview]
Message-ID: <401D14BB.9020901@kegel.com> (raw)
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
next reply other threads:[~2004-02-01 15:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-01 15:01 Dan Kegel [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-02-01 13:07 FW: Linux device driver using c++! Jinu M.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=401D14BB.9020901@kegel.com \
--to=dank@kegel.com \
--cc=jinum@esntechnologies.co.in \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.