At 22:14 27/09/2000, Timur Tabi wrote:
>** Reply to message from Alan Cox <[EMAIL PROTECTED]> 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
>make
>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.
Anton
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: [EMAIL PROTECTED]
Cambridge CB2 3BU ICQ: 8561279
United Kingdom WWW: http://www-stu.christs.cam.ac.uk/~aia21/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/