Jump to content

DevHlp CreateSpinLock: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:DevHlp_CreateSpinLock}} Create a subsystem spinlock. This function creates a subsystem spinlock. ==Parameters== Pointer to spinlock handle. ==Return Code== Exit ==Example Code== ;Assembly language ; dh_CreateSpinLock - Create a spinlock ; ; This routine creats a subsystem spinlock. ; ; ENTRY: AX:BX = pointer to store spinlock handle ; ; EXIT: None ; ; USES: EAX, Flags ;..."
 
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:


This function creates a subsystem spinlock.
This function creates a subsystem spinlock.
==Syntax==
DevHlp_CreateSpinLock(HSpinLock FAR * pSpl)


==Parameters==
==Parameters==
Pointer to spinlock handle.
;''pSpl'' ([[HSPINLOCK]]) - input: Pointer to spinlock handle.


==Return Code==
==Return Code==
Line 26: Line 29:
       MOV    AX,AddressHigh              ; high word of address
       MOV    AX,AddressHigh              ; high word of address
       MOV    BX,AddressLow                ; low word of address
       MOV    BX,AddressLow                ; low word of address
       MOV    DL,DevHlp_CreateSpinLock    ;
       MOV    DL,DevHlp_CreateSpinLock    ; 79h
       CALL    DevHlp
       CALL    DevHlp
       JC      Error
       JC      Error

Latest revision as of 04:21, 28 May 2025


Create a subsystem spinlock.

This function creates a subsystem spinlock.

Syntax

DevHlp_CreateSpinLock(HSpinLock FAR * pSpl)

Parameters

pSpl (HSPINLOCK) - input
Pointer to spinlock handle.

Return Code

Exit

Example Code

Assembly language
    ;       dh_CreateSpinLock - Create a spinlock ;
    ;       This routine creats a subsystem spinlock.
    ;
    ;       ENTRY:  AX:BX = pointer to store spinlock handle
    ;
    ;       EXIT:   None
    ;
    ;       USES:   EAX, Flags
    ;

      MOV     AX,AddressHigh               ; high word of address
      MOV     BX,AddressLow                ; low word of address
      MOV     DL,DevHlp_CreateSpinLock     ; 79h
      CALL    DevHlp
      JC      Error