Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 0
Dynamic Memory Allocation


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,

Old 09-05-2005, 05:01 AM   #2
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?


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
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

All times are GMT -5. The time now is 02:28 AM.

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