PFN_WDFOBJECTRELEASELOCK callback function

[Applies to KMDF and UMDF]

The WdfObjectReleaseLock method releases an object's synchronization lock.

Syntax

PFN_WDFOBJECTRELEASELOCK PfnWdfobjectreleaselock;

WDFAPI PfnWdfobjectreleaselock(
  PWDF_DRIVER_GLOBALS DriverGlobals,
  _Requires_lock_held_(_Curr_)_Releases_lock_(_Curr_) WDFOBJECT
)
{...}

Parameters

DriverGlobals

WDFOBJECT

Return Value

None.

A bug check occurs if the driver supplies an invalid object handle.

Remarks

The WdfObjectReleaseLock method releases the synchronization lock that a driver acquired by previously calling WdfObjectAcquireLock. WdfObjectReleaseLock also restores the driver's IRQL to the value that it had before the driver called WdfObjectAcquireLock.

For more information about synchronization locks, see Synchronization Techniques for Framework-Based Drivers.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfsync.h (include Wdf.h)
IRQL "<=DISPATCH_LEVEL"
DDI compliance rules DriverCreate, KmdfIrql, KmdfIrql2

See Also

WdfObjectAcquireLock