Jump to content

DevHlp_FreeSpinLock

From EDM2
Revision as of 21:57, 22 May 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:DevHlp_FreeSpinLock}} Free a subsystem spinlock. This function frees a subsystem spinlock. ==Parameters== 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 ?...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Free a subsystem spinlock.

This function frees a subsystem spinlock.

Parameters

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       ;
      CALL    DevHlp
      JC      Error