DevHlp ReleaseSpinLock: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
This function releases ownership of a subsystem spinlock. | This function releases ownership of a subsystem spinlock. | ||
==Syntax== | |||
DevHlp_ReleaseSpinLock(spl) | |||
==Parameters== | ==Parameters== | ||
Spinlock handle. | ;''spl'' (HSpinLock) - input: Spinlock handle. | ||
==Return code== | ==Return code== | ||
Line 27: | Line 30: | ||
MOV AX,hSpinLockHighWord ; high word of handle | MOV AX,hSpinLockHighWord ; high word of handle | ||
MOV BX,hSpinLockLowWord ; low word of handle | MOV BX,hSpinLockLowWord ; low word of handle | ||
MOV DL,DevHlp_ReleaseSpinLock ; | MOV DL,DevHlp_ReleaseSpinLock ; 72h | ||
CALL DevHlp | CALL DevHlp | ||
JC Error | JC Error |
Latest revision as of 04:07, 28 May 2025
Release a subsystem spinlock.
This function releases ownership of a subsystem spinlock.
Syntax
DevHlp_ReleaseSpinLock(spl)
Parameters
- spl (HSpinLock) - input
- Spinlock handle.
Return code
Exit
Example Code
- Assembly language
; dh_ReleaseSpinLock - Release a subsystem spinlock. ; ; Releases ownership of a subsystem spinlock. Used by device drivers. ; ; ENTRY: AX:BX = spinlock handle ; ; EXIT: None ; ; USES: Flags ; hSpinLock dd ? ; 16:16 MOV AX,hSpinLockHighWord ; high word of handle MOV BX,hSpinLockLowWord ; low word of handle MOV DL,DevHlp_ReleaseSpinLock ; 72h CALL DevHlp JC Error