next up previous contents index
Next: segment_to_descriptor Up: Functions and Procedures Previous: allocate_ldt_descriptors

free_ldt_descriptor

   

Declaration:

Function free_ldt_descriptor (des : Word) : boolean;

Description:

Frees a previously allocated descriptor.

Parameters:

des:
The descriptor to be freed

Return value: True if successful, false otherwise.

Notes: After this call this selector is invalid and must not be used for any memory operations anymore. Each descriptor allocated with allocate_ltd_descriptor() must be freed individually with this function, even if it was previously allocated as a part of a contiguous array of descriptors.

Errors:

Check int31error variable

See also:

allocate_ldt_descriptors, get_next_selector_increment_value

For an example, see allocate_ldt_descriptors.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998