DevHlp CreateSpinLock: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
==Parameters== | ==Parameters== | ||
;''pSpl'' (HSpinLock) - input: Pointer to spinlock handle. | ;''pSpl'' ([[HSpinLock]]) - input: Pointer to spinlock handle. | ||
==Return Code== | ==Return Code== | ||
Revision as of 04:20, 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