[lkml]   [2000]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Linux kernel modules development in C++
At 22:14 27/09/2000, Timur Tabi wrote:
>** Reply to message from Alan Cox <> on Wed, 27 Sep
>2000 22:00:54 +0100 (BST)
> > > I have written the Windows platform version in C++ using Numega's tools
> > > encapsulating the driver code in classes.
> > > More of this classes isn't OS specific and it work well in any OS.
> >
> > And do you rely on any exception throwing ?
> >
> > If you use no exceptions (including thus using new and other
> constructors that
> > allocate) you should be ok.
>I don't think any OS supports exception handling in a driver. It wouldn't
>much sense, since there's no way for a driver to really "exit" (which is the
>ultimate destination of the exception).

Maybe we have different definitions of "exception" and possibly different
definitions of what can be considered an "OS" but Windows NT drivers use
exceptions(+handlers) all over the place. - The code is full of RtlUnwind
calls as well modifications to exception handler lists (usually addition of
handler on function entry and removal on function exit).

Just my 2p.


P.S. I am not saying that exceptions are good or bad, just that they exist
in Windows, whether you consider it an OS or not...

P.P.S. Flames to /dev/null...

"Education is what remains after one has forgotten everything he
learned in school." - Albert Einstein
Anton Altaparmakov Voice: 01223-333541(lab) / 07712-632205(mobile)
Christ's College eMail:
Cambridge CB2 3BU ICQ: 8561279
United Kingdom WWW:

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:0.046 / U:3.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site