LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can we allocate physical memory starting from a given address? (https://www.linuxquestions.org/questions/linux-newbie-8/can-we-allocate-physical-memory-starting-from-a-given-address-903310/)

bvg_1 09-16-2011 03:02 AM

Can we allocate physical memory starting from a given address?
 
Hi,
Is it possible to allocate physical memory starting from a fixed known location?
e.g. I wanted to allocate 1000 bytes from 0x80005a00.
If it is possible, then plz let me know how to do it?
Thanks in advance,
bvgrao.

syg00 09-16-2011 08:00 PM

You've got that much RAM ?

No - at least not from userspace.

bvg_1 09-17-2011 04:35 AM

Yes, my RAM base address is from 0x8000:0000.
Is it possible to do from kernel space?
I need to store some data before system enters suspend at a fixed known location and read it back after resume.
Can some one plz help.

jefro 09-17-2011 04:44 PM

I'd say yes you can but it may depend on how you want to use that.

bvg_1 09-19-2011 02:52 AM

Hi,
Thanks for your reply.
Can you plz provide me a code snippet/ pseudo code to do this?
Thanks in advance.
Quote:

Originally Posted by jefro (Post 4474733)
I'd say yes you can but it may depend on how you want to use that.



All times are GMT -5. The time now is 01:55 AM.