Jump to content

DevHlp_AcquireSpinLock

From EDM2
Revision as of 22:00, 22 May 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:DevHlp_AcquireSpinLock}} Acquire a subsystem spinlock. This function obtains ownership of a subsystem spinlock. ==Parameters== Spinlock handle. ==Return code== Exit ==Example Code== ;Assembly language ; dh_AcquireSpinLock - Acquire a subsystem spinlock ; ; Obtains ownership of a subsystem spinlock. Used by device drivers. ; ; ENTRY: AX:BX = spinlock handle ; ; EXIT: None ; ; USES...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Acquire a subsystem spinlock.

This function obtains ownership of a subsystem spinlock.

Parameters

Spinlock handle.

Return code

Exit

Example Code

Assembly language
    ;       dh_AcquireSpinLock - Acquire a subsystem spinlock ;
    ;       Obtains 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_AcquireSpinLock    ;
      CALL    DevHlp
      JC      Error