Jump to content

FSH IOSEMCLEAR: Difference between revisions

From EDM2
Created page with "This function allows an FSD to clear the I/O event semaphore that is a part of the Extended Strategy request packet. ==Syntax== FSH_IOSEMCLEAR(pSem) ==Parameters== ;pSem:..."
 
Ak120 (talk | contribs)
m r
 
Line 1: Line 1:
This function allows an FSD to clear the I/O event semaphore that is a part of the Extended Strategy request packet.  
{{DISPLAYTITLE:FSH_IOSEMCLEAR}}
This function allows an FSD to clear the I/O event semaphore that is a part of the Extended Strategy request packet.


==Syntax==
==Syntax==
  FSH_IOSEMCLEAR(pSem)
  FSH_IOSEMCLEAR(pSem)
==Parameters==
==Parameters==
;pSem: is the handle to the I/O event semaphore.  
;pSem: is the handle to the I/O event semaphore.
 
==Returns==
==Returns==
If no error is detected, a zero error code is returned. If an error is detected, one of the following error codes is returned:  
If no error is detected, a zero error code is returned. If an error is detected, one of the following error codes is returned:
*ERROR_EXCL_ALREADY_OWNED the exclusive semaphore is already owned.
*ERROR_PROTECTION_VIOLATION the semaphore is inaccessible.


*ERROR_EXCL_ALREADY_OWNED the exclusive semaphore is already owned. 
==Calling Sequence==
int far pascal FSH_IOSEMCLEAR(pSem)


*ERROR_PROTECTION_VIOLATION the semaphore is inaccessible.
==Calling Sequence==
<PRE>
int far pascal FSH_IOSEMCLEAR(pSem)
</PRE>
==Remarks==
==Remarks==
FSH_IOSEMCLEAR may block.  
FSH_IOSEMCLEAR may block.


For a detailed description of the Extended Strategy request interface, please see the OS/2 Version 2.0 Physical Device Driver Reference  
For a detailed description of the Extended Strategy request interface, please see the ''OS/2 Version 2.0 Physical Device Driver Reference''.
 
;Note: OS/2 does not validate input parameters. An FSD, therefore, should call FSH_PROBEBUF where appropriate.  


;Note: OS/2 does not validate input parameters. An FSD, therefore, should call [[FSH_PROBEBUF]] where appropriate.


[[Category:IFS Interfaces]]
[[Category:IFS Interfaces]]
{{DISPLAYTITLE:FSH_IOSEMCLEAR}}

Latest revision as of 04:46, 20 February 2020

This function allows an FSD to clear the I/O event semaphore that is a part of the Extended Strategy request packet.

Syntax

FSH_IOSEMCLEAR(pSem)

Parameters

pSem
is the handle to the I/O event semaphore.

Returns

If no error is detected, a zero error code is returned. If an error is detected, one of the following error codes is returned:

  • ERROR_EXCL_ALREADY_OWNED the exclusive semaphore is already owned.
  • ERROR_PROTECTION_VIOLATION the semaphore is inaccessible.

Calling Sequence

int far pascal FSH_IOSEMCLEAR(pSem)

Remarks

FSH_IOSEMCLEAR may block.

For a detailed description of the Extended Strategy request interface, please see the OS/2 Version 2.0 Physical Device Driver Reference.

Note
OS/2 does not validate input parameters. An FSD, therefore, should call FSH_PROBEBUF where appropriate.