Jump to content

DevHlp FreeSpinLock: Difference between revisions

From EDM2
Erdmann (talk | contribs)
No edit summary
No edit summary
 
Line 3: Line 3:


This function frees a subsystem spinlock.
This function frees a subsystem spinlock.
==Syntax==
DevHlp_FreeSpinLock(spl)


==Parameters==
==Parameters==
Spinlock handle.
;spl (HSpinLock) - input: Spinlock handle.


==Return code==
==Return code==

Latest revision as of 04:11, 28 May 2025

Free a subsystem spinlock.

This function frees a subsystem spinlock.

Syntax

DevHlp_FreeSpinLock(spl)

Parameters

spl (HSpinLock) - input
Spinlock handle.

Return code

Exit

Example Code

Assembly language
    ;       dh_FreeSpinLock - Free a subsystem spinlock ;
    ;       This routine frees a subsystem spinlock.
    ;
    ;       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_FreeSpinLock       ; 7Ah
      CALL    DevHlp
      JC      Error