update SAL annotations for kernel, addresses #501#502
Open
mediantt wants to merge 2 commits intomicrosoft:masterfrom
Open
update SAL annotations for kernel, addresses #501#502mediantt wants to merge 2 commits intomicrosoft:masterfrom
mediantt wants to merge 2 commits intomicrosoft:masterfrom
Conversation
jonwis
reviewed
Jun 1, 2025
|
|
||
| WI_NODISCARD | ||
| inline _IRQL_requires_max_(APC_LEVEL) | ||
| _IRQL_raises_(APC_LEVEL) |
Member
There was a problem hiding this comment.
ExTryToAcquire... only raises to APC_LEVEL if it acquired the mutex. See https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/irql-annotations-for-drivers and https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-extrytoacquirefastmutex .. This probably needs a When() in here, like:
_When_(return, _IRQL_raises_(APC_LEVEL) _IRQ_saves_global_(OldIrql, return))Not sure how to have the return peek into the returned object to see if it's active or not.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.