Driver Problems? Questions? Issues?
Put OSR's experience to work for you! Contact us for assistance with:
  • Creating the right design for your requirements
  • Reviewing your existing driver code
  • Analyzing driver reliability/performance issues
  • Custom training mixed with consulting and focused directly on your specific areas of interest/concern.
Check us out. OSR, the Windows driver experts.

OSR Seminars

Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 2  
09 Jul 18 13:44
Prokash Sinha
Join Date: 23 Feb 2000
Posts To This List: 1087
Re: RE: RE: Re: [BULK] Re: Modern C++ Features in Kernel Mode Drivers

I read this before, worth reading again :) > On Jul 9, 2018, at 10:16 AM, <> wrote: > > The Linux kernel has some 100,000 goto references. The Goto wars have been around since the late 60's. > > I use them, but rarely. I don't go out of my way to code around them. They just happen when they need to happen. > > This is a fun read: <> > > > On Mon, Jul 9, 2018 at 5:15 AM <> < <>> wrote: <...excess quoted lines suppressed...> --
  Message 2 of 2  
09 Jul 18 13:49
Tim Roberts
Join Date: 28 Jan 2005
Posts To This List: 12008
Re: RE: RE: Re: [BULK] Re: Modern C++ Features in Kernel Mode Drivers wrote: > No, I’m not. Last thing I remember was the GDI drivers ( on the graphics side), and IIRC it has C++. No, GDI drivers were all in C.  That's how I got my start.  Some of the user-mode printer DLLs used C++. > Where does it live in the stack ? Is it top level driver ? Yes.  AVStream and Port-class drivers are both miniports.  Your web camera and your sound card are both being driven by C++ code. > If it can be executed in arbitrary context, can you use exception ? I guess not ! Of course not.  You've never been able to use exceptions in the kernel, and you still can't do so today. I will say that, 10 or 15 years ago, I encountered a project that originally came from one-time driver luminary Walter Oney.  He had created a library and a set of assembler glue code that DID enable the use of C++ exceptions in the kernel.  It was frightening.  I backed slowly away. -- Tim Roberts, Providenza & Boekelheide, Inc.
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 19:25.

Copyright ©2015, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license