public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Linux device driver using c++!
@ 2004-02-01 12:47 Jinu M.
  2004-02-01 13:00 ` Julien Rebetez
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jinu M. @ 2004-02-01 12:47 UTC (permalink / raw)
  To: linux-kernel

Hi All,

	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++.
	
Regards,
-Jinu


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Linux device driver using c++!
  2004-02-01 12:47 Linux device driver using c++! Jinu M.
@ 2004-02-01 13:00 ` Julien Rebetez
  2004-02-01 13:02 ` Måns Rullgård
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Julien Rebetez @ 2004-02-01 13:00 UTC (permalink / raw)
  To: Jinu M.; +Cc: linux-kernel

Jinu M. wrote:

>Hi All,
>
>	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++.
>	
>Regards,
>-Jinu
>
>-
>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/
>
>  
>
Hi

There was a discussion on it few days ago :
http://www.ussg.iu.edu/hypermail/linux/kernel/0204.1/0218.html (first 
message)
I think it should answer your question.

Regards, Julien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Linux device driver using c++!
  2004-02-01 12:47 Linux device driver using c++! Jinu M.
  2004-02-01 13:00 ` Julien Rebetez
@ 2004-02-01 13:02 ` Måns Rullgård
  2004-02-01 13:05 ` Henti Smith
  2004-02-01 17:58 ` Rafael Pereira
  3 siblings, 0 replies; 6+ messages in thread
From: Måns Rullgård @ 2004-02-01 13:02 UTC (permalink / raw)
  To: linux-kernel

"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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Linux device driver using c++!
  2004-02-01 12:47 Linux device driver using c++! Jinu M.
  2004-02-01 13:00 ` Julien Rebetez
  2004-02-01 13:02 ` Måns Rullgård
@ 2004-02-01 13:05 ` Henti Smith
  2004-02-01 13:19   ` Nick Piggin
  2004-02-01 17:58 ` Rafael Pereira
  3 siblings, 1 reply; 6+ messages in thread
From: Henti Smith @ 2004-02-01 13:05 UTC (permalink / raw)
  To: Jinu M.; +Cc: linux-kernel

On Sun, 1 Feb 2004 18:17:08 +0530
"Jinu M." <jinum@esntechnologies.co.in> wrote:

> 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 possible, but like having sex with a cactus

very painful,
very silly, 
very unsatisfactory 

and no sane person would touch the cactus afterwards ;P 

-- 
Henti Smith
henti@geekware.co.za
Co-Owner
+27 82 958 2525
http://www.geekware.co.za

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Linux device driver using c++!
  2004-02-01 13:05 ` Henti Smith
@ 2004-02-01 13:19   ` Nick Piggin
  0 siblings, 0 replies; 6+ messages in thread
From: Nick Piggin @ 2004-02-01 13:19 UTC (permalink / raw)
  To: Henti Smith; +Cc: Jinu M., linux-kernel



Henti Smith wrote:

>On Sun, 1 Feb 2004 18:17:08 +0530
>"Jinu M." <jinum@esntechnologies.co.in> wrote:
>
>
>>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 possible, but like having sex with a cactus
>
>very painful,
>very silly, 
>very unsatisfactory 
>
>and no sane person would touch the cactus afterwards ;P 
>
>

Oh yeah and if you trim off the spikes you might as well
just do it with C^Hyour hand, right?

Why haven't I ever thought of this wonderful analogy before?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Linux device driver using c++!
  2004-02-01 12:47 Linux device driver using c++! Jinu M.
                   ` (2 preceding siblings ...)
  2004-02-01 13:05 ` Henti Smith
@ 2004-02-01 17:58 ` Rafael Pereira
  3 siblings, 0 replies; 6+ messages in thread
From: Rafael Pereira @ 2004-02-01 17:58 UTC (permalink / raw)
  To: Jinu M.; +Cc: Linux Kernel Mailing List

On Sun, 2004-02-01 at 10:47, Jinu M. wrote:
> Hi All,
> 
> 	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++.
> 	
> Regards,
> -Jinu

This topic you posted is in the Linux Kernel Mailing List FAQ at:

http://www.kernel.org/pub/linux/docs/lkml/

Seacrh for this question:

"Why don't we rewrite the Linux kernel in C++?"

And you find because C++ is not used in the Linux Kernel.


Rafael.

-- 
================================================== 
Rafael do Nascimento Pereira 
Equipe de Suporte - Dpto. de Informatica - PUC-Rio 
================================================== 
Tel: (21) 3114-1500 ramais 3303,3304,3305 
Fax: (21) 3114-1530 
================================================== 


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-02-01 17:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-01 12:47 Linux device driver using c++! Jinu M.
2004-02-01 13:00 ` Julien Rebetez
2004-02-01 13:02 ` Måns Rullgård
2004-02-01 13:05 ` Henti Smith
2004-02-01 13:19   ` Nick Piggin
2004-02-01 17:58 ` Rafael Pereira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox