[lkml]   [2000]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Linux kernel modules development in C++
** 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 make
much sense, since there's no way for a driver to really "exit" (which is the
ultimate destination of the exception).

By the way, new and delete are NOT exceptions. They are simply wrappers for
malloc() and free(). Just define your own malloc and free (they can be
wrappers for a kernel memory allocation API, or you can write your own heap
manager), and new and delete work just fine.

Timur Tabi -
Interactive Silicon -

When replying to a mailing-list message, please don't cc: me, because then I'll just get two copies of the same message.
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:39    [W:0.073 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site