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 07-25-2012, 11:21 AM   #1
nosuchthingasstars
LQ Newbie
 
Registered: Jul 2012
Distribution: Ubuntu 12.04
Posts: 2

Rep: Reputation: Disabled
Request memory block at specific virtual address


I don't know if this is possible, but I thought I would ask before I just gave up. I'm writing a program that will need to request memory at a specific address in memory - I have no control over how much or what address. I've been scouring the man pages for a way to do this. I found mmap(), but I'm not sure if that's really what I want; I don't want to map a file. I also read up on page tables, but they seem like something I shouldn't even try to mess with unless there's no other way.

Thanks in advance!
 
Old 07-25-2012, 12:32 PM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
I think mmap() is exactly what you want. Read the details regarding MAP_ANONYMOUS in the mmap documentation.
 
1 members found this post helpful.
Old 07-25-2012, 12:41 PM   #3
nosuchthingasstars
LQ Newbie
 
Registered: Jul 2012
Distribution: Ubuntu 12.04
Posts: 2

Original Poster
Rep: Reputation: Disabled
Can't believe I missed that. Thanks!
 
  


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
dhclient command to request a specific ip address ubuntuv Linux - Networking 4 03-12-2012 03:38 PM
How to block web sites on a specific IP address ? gardenair Linux - Server 8 02-16-2012 09:23 AM
how to block a specific MAC address venkat_eg Linux - General 2 02-05-2011 05:01 PM
Question: Request a specific IP address from a DHCP server? haertig Linux - Software 2 09-13-2006 04:32 PM
how to request a specific ip address with dhclient hypexr Linux - Networking 4 09-15-2005 10:07 PM

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

All times are GMT -5. The time now is 09:12 AM.

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