LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-04-2005, 10:22 PM   #1
jvff
LQ Newbie
 
Registered: Jul 2005
Distribution: Gentoo
Posts: 3

Rep: Reputation: 0
Dynamic Memory Allocation


Hello,

I need to implement memory allocation and deallocation functions (programming in assembler) and I must also change the type of allocated memory (it's flags, ie. executable, readable, writeable, etc.). From what I read I must use sys_brk to change the program's address space. The problem I have is with the flags; can I change the allocated memory type? Thank you,

JVFF
 
Old 09-05-2005, 05:01 AM   #2
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
are you refering to sbrk or brk?
i do not understand your problem well but are you looking for mprotect?
 
  


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
dynamic memory allocation failure guam Programming 4 04-13-2005 09:16 AM
dynamic memory allocation in kernel module appas Programming 4 09-21-2004 06:36 AM
dynamic allocation of memory in kernel space appas Programming 1 08-04-2004 06:32 AM
pointers and dynamic memory allocation deveraux83 Programming 2 01-24-2004 10:35 AM
Dynamic Memory Allocation query dhanakom Programming 2 07-21-2003 02:19 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:44 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