KeRcuReadUnlock - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

VOID KeRcuReadUnlock();
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-kercureadunlock)

Description

The KeRcuReadUnlock function exits a RCU (Read-Copy-Update) read-side critical section in the default RCU domain that was previously entered with KeRcuReadLock.

Remarks

This function unpins the calling thread from its processor, restores the original IRQL if needed, and performs any necessary grace period reporting to advance RCU synchronization.

KeRcuReadUnlock must be called to exit every RCU read-side critical section that was entered with KeRcuReadLock. Calls must be properly nested (LIFO order) when using nested RCU read-side critical sections.

After calling KeRcuReadUnlock:

This function can be called from any IRQL. The function automatically handles IRQL restoration; that is, if the original IRQL before the corresponding KeRcuReadLock was below DISPATCH_LEVEL, it will be restored to that level.

This function uses the default RCU domain, making it suitable for simple RCU use cases. For more complex scenarios requiring custom synchronization domains, use KeSrcuReadUnlock with an explicit SRCU partition.

See also

KeRcuReadLock

KeRcuSynchronize

KeSrcuReadLock

KeSrcuReadUnlock

KeSrcuSynchronize