The HyperNews Linux KHG Discussion Pages

## Allocating real memory

  Forum: Device Drivers
  Keywords: real memory allocation
  Date: Tue, 05 Aug 1997 17:42:53 GMT
  From: Jean Meloche <jean@zap.stat.ubc.ca>

Hi! I am writing a module that needs to get exclusive use of all the real memory addresses beyond the first 64Mb on a 128Mb machine. I managed to do this by booting with the option mem=-64m and using
        mybuf=vremap(64*1024*1024,64*1024*1024);
during my module initialization. But I'm sure there is a better way to do that. In particular,
    1- Is there a way to grab that memory for exclusive use
        without using the boot option mem=64m?
    2- How can I find out how much real memory there is
        beyond the first 64Mb?
Many thanks, Jean