FSH SEGFREE: Difference between revisions
Appearance
Created page with "This function releases a GDT or LDT segment previously allocated with FSH_ SEGALLOC or loaded as part of the FSD image. ==Syntax== FSH_SEGFREE(sel) ==Parameters== ;sel: ..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
This function releases a GDT or LDT segment previously allocated with | This function releases a GDT or LDT segment previously allocated with FSH_SEGALLOC or loaded as part of the FSD image. | ||
==Syntax== | ==Syntax== | ||
FSH_SEGFREE(sel) | |||
==Parameters== | ==Parameters== | ||
;sel: is the selector to be freed. | ;sel: is the selector to be freed. | ||
==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_INVALID_ACCESS the selector is invalid. | *ERROR_INVALID_ACCESS the selector is invalid. | ||
==Calling Sequence== | ==Calling Sequence== | ||
<PRE> | <PRE> | ||
Line 14: | Line 17: | ||
unsigned short sel; | unsigned short sel; | ||
</PRE> | </PRE> | ||
==Remarks== | ==Remarks== | ||
FSH_SEGFREE may block. | FSH_SEGFREE may block. | ||
;Note: | ;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_SEGFREE}} | {{DISPLAYTITLE:FSH_SEGFREE}} |
Latest revision as of 05:41, 20 February 2020
This function releases a GDT or LDT segment previously allocated with FSH_SEGALLOC or loaded as part of the FSD image.
Syntax
FSH_SEGFREE(sel)
Parameters
- sel
- is the selector to be freed.
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_INVALID_ACCESS the selector is invalid.
Calling Sequence
int far pascal FSH_SEGFREE(sel) unsigned short sel;
Remarks
FSH_SEGFREE may block.
- Note
- OS/2 does not validate input parameters. An FSD, therefore, should call FSH_PROBEBUF where appropriate.