Skip to content

Latest commit

 

History

History
43 lines (23 loc) · 1.06 KB

spinlock_unlock.md

File metadata and controls

43 lines (23 loc) · 1.06 KB
description
Description of the 'spinlock_unlock' function in HyperDbg Scripts

spinlock_unlock

Function

spinlock_unlock

Syntax

spinlock_unlock( *Variable );

Parameters

[*Variable (Lock)]

A reference to a variable (most of the time a global variable), used as a lock. The lock can be locked by spinlock_lock.

Description

Unlocks the spinlock referred to by lock.

Return value

None

Examples

spinlock_unlock(&.my_lock_var);

unlocks the spinlock of a global variable (lock) which is called .my_lock. Note that you should use the unary operator & to pass a reference of the global variable to this function.

Remarks

None

Related

spinlock_lock

spinlock_lock_custom_wait