next up previous contents index
Next: set_descriptor_access_rights Up: Functions and Procedures Previous: get_segment_limit

set_segment_limit

   

Declaration:

Function set_segment_limit (d : Word; s : Longint) : boolean;

Description:

Sets the limit of a descriptor.

Parameters:

d:
selector s - new limit of the descriptor

Return values: Returns true if successful, else false.

Notes: The new limit specified must be the byte length of the segment - 1. Segment limits bigger than or equal to 1MB must be page aligned, they must have the lower 12 bits set.

Errors:

Check int31error variable

See also:

allocate_ldt_descriptors, set_segment_base_address, get_segment_limit, set_segment_limit

For an example, see allocate_ldt_descriptors.



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