LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2011, 04:02 AM   #1
bvg_1
LQ Newbie
 
Registered: May 2011
Posts: 8

Rep: Reputation: 0
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.
 
Old 09-16-2011, 09:00 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
You've got that much RAM ?

No - at least not from userspace.
 
Old 09-17-2011, 05:35 AM   #3
bvg_1
LQ Newbie
 
Registered: May 2011
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 09-17-2011, 05:44 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
I'd say yes you can but it may depend on how you want to use that.
 
Old 09-19-2011, 03:52 AM   #5
bvg_1
LQ Newbie
 
Registered: May 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Smile

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 View Post
I'd say yes you can but it may depend on how you want to use that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
virtual memory address to physical address _Linux_Learner Linux - Newbie 1 04-14-2010 02:34 AM
virtual address to physical memory access pupillo Linux - General 2 02-22-2010 11:07 AM
[SOLVED] Find Physical address of memory provided by kmalloc raghu2383 Programming 3 10-23-2009 03:25 PM
How much physical memory can a 32-bit installation address gschmitt99 Linux - General 1 09-19-2008 02:10 PM
Memory Mapping (same physical address = virtual address) skd.tech Linux - Kernel 7 07-25-2006 12:13 AM


All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration