Does device.exe serialize access to my device driver's
exported functions?

I need to modify a global data structure in XXX_Open
and XXX_Close, should I add my own synchronization
around that, or will device.exe do that for me?

Thanks in advance.

Re: Thread safety in device driver functions (XXX_Open, XXX_Close) by Bruce

Bruce
Wed Sep 24 08:15:37 CDT 2003

You should add synchronization using one of the synchronization objects.

--
Bruce Eitman (eMVP)
Senior Engineer
Accelent Systems Inc.
www.accelent.com





Re: Thread safety in device driver functions (XXX_Open, XXX_Close) by Steve

Steve
Wed Sep 24 08:26:33 CDT 2003

Neither Device.EXE nor any other part of the OS provides serialization of
calls to a device driver. The device driver is responsible for providing
it's own synchronization as needed.

--
Steve Maillet (eMVP)
Entelechy Consulting
smaillet_AT_EntelechyConsulting_DOT_com



Re: Thread safety in device driver functions (XXX_Open, XXX_Close) by Jeff

Jeff
Wed Sep 24 14:01:41 CDT 2003

Nor should the OS impose serialization, as that would prevent drivers from
being able to support multiple concurrent Opens.

- Jeff.

"Steve Maillet (eMVP)" <nospam1@EntelechyConsulting.com> wrote in message
news:uee67$pgDHA.2408@TK2MSFTNGP09.phx.gbl...
> Neither Device.EXE nor any other part of the OS provides serialization of
> calls to a device driver. The device driver is responsible for providing
> it's own synchronization as needed.
>
> --
> Steve Maillet (eMVP)
> Entelechy Consulting
> smaillet_AT_EntelechyConsulting_DOT_com
>
>



Re: Thread safety in device driver functions (XXX_Open, XXX_Close) by Nisse

Nisse
Thu Sep 25 02:33:02 CDT 2003

That makes sense. Thanks for all replies.