next up previous contents index
Next: get_meminfo Up: Functions and Procedures Previous: get_descriptor_access_rights

create_code_segment_alias_descriptor

   

Declaration:

Function create_code_segment_alias_descriptor (seg : Word) : Word;

Description:

Creates a new descriptor that has the same base and limit as the specified descriptor.

Parameters:

seg:
selector

Return values: Data selector (alias)

Notes: In effect, the function returns a copy of the descriptor. The descriptor alias returned by this function will not track changes to the original descriptor. In other words, if an alias is created with this function, and the base or limit of the original segment is then changed, the two descriptors will no longer map the same memory.

Errors:

Check int31error variable

See also:

allocate_ldt_descriptors, set_segment_limit, set_segment_base_address



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