LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 03: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, 08:00 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

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

No - at least not from userspace.
 
Old 09-17-2011, 04: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, 04:44 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
I'd say yes you can but it may depend on how you want to use that.
 
Old 09-19-2011, 02: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



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 01:34 AM
virtual address to physical memory access pupillo Linux - General 2 02-22-2010 10:07 AM
[SOLVED] Find Physical address of memory provided by kmalloc raghu2383 Programming 3 10-23-2009 02:25 PM
How much physical memory can a 32-bit installation address gschmitt99 Linux - General 1 09-19-2008 01:10 PM
Memory Mapping (same physical address = virtual address) skd.tech Linux - Kernel 7 07-24-2006 11:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:25 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
Open Source Consulting | Domain Registration