Hi,
Just want to verify I’m not missing something when I think using ExAcquireFastMutexUnsafe will be okay even at Passive Level. I have a worker thread which pulls off data from a lookaside list and adds to the_buffer (pageable). The only place the_buffer will also be accessed is via an ioctl (from an application) that requests the data from the_buffer. I’d like to handle that within the ioctl call directly since it will happen very infrequently (talking hours if that). In this case, I can’t see why any APC would cause any issue and using ExAcquireFastMutexUnsafe should be okay. Or am I wrong?
TIA!!
It will be OK. KeEnter/LeaveCriticalRegion calls are extremely cheap and prevent the APCs from coming. You should use these calls as well.
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@terabyteunlimited.com
Sent: Monday, July 20, 2015 4:11 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] ExAcquireFastMutexUnsafe at Passive Level
Hi,
Just want to verify I’m not missing something when I think using ExAcquireFastMutexUnsafe will be okay even at Passive Level. I have a worker thread which pulls off data from a lookaside list and adds to the_buffer (pageable). The only place the_buffer will also be accessed is via an ioctl (from an application) that requests the data from the_buffer. I’d like to handle that within the ioctl call directly since it will happen very infrequently (talking hours if that). In this case, I can’t see why any APC would cause any issue and using ExAcquireFastMutexUnsafe should be okay. Or am I wrong?
TIA!!
—
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer