next up previous contents index
Next: global_dos_alloc Up: Functions and Procedures Previous: free_memory_block

get_linear_addr

   

Declaration:

Function get_linear_addr (phys_addr : Longint; size : Longint) : Longint;

Description:

Converts a physical address into a linear address.

Parameters:

phys_addr:
- physical address of device size - size of region to map in bytes

Return value: Linear address that can be used to access the physical memory.

Notes: It's the applications resposibility to allocate and set up a descriptor for access to the memory. This function shouldn't be used to map real mode addresses.

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