get_linear_addr function
Convert physical to linear address.
Declaration
function get_linear_addr(phys_addr: DWord; size: LongInt): DWordDescription
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 responsibility 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 the int31error variable.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
