Re: OS Question
- From: "Pavel A." <pavel_a@xxxxxxxxxxxxxxx>
- Date: Sun, 11 May 2008 18:48:13 +0300
"Hugogleaves@xxxxxxxxxxx>" <hugh<underbar> wrote in message news:2A136AC4-76AD-4404-B0C1-67E6EC6BC15E@xxxxxxxxxxxxxxxx
Hi
This isnt strictly about a driver issue, but many driver coders may have
insights.
Basically we plan to user some of the Interlock functions (exchange,
exchange compare etc) as the basis for a simple fast lock (not in driver code
though).
However, we are also placing the integer values in pages that have had their
access set to Read Only. Currently when code attempts to write to such a page
we trap the exception, run a few checks and then update the page to have
Write access.
This is all standard stuff, BUT if we locate an integer in such a page AND
try to use an interlock exchnage kind of function on it, it raises an
interesting question.
The interlock operations are defined as being uniterruptible BUT if they are
in a ReadOnly page the operation WILL be interrupted (by the exception that
prevents writes to read only pages).
So would it work or not??
Any insights much appreciated.
PS: We are using XP, Vista, Server 2003 and 2008 both 32-bit and 64-bit.
Ok I'll try to answer this, as there's still no other replies.
Interlocked... functions do work with variables in pageable memory.
If these can be interrupted by paging operations, they can be
interrupted by other resumable exceptions as well;
so it will work exactly in same way.
Regards,
--PA
.
- Follow-Ups:
- Re: OS Question
- From: Hugo gleaves
- Re: OS Question
- References:
- OS Question
- From: Hugo gleaves
- OS Question
- Prev by Date: WDM USB driver trouble under vista
- Next by Date: I can not find these functions on MS online library
- Previous by thread: OS Question
- Next by thread: Re: OS Question
- Index(es):
Relevant Pages
|