linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brian Raiter <breadbox@muppetlabs.com>
To: linux-assembly@vger.kernel.org
Subject: Re: linux system call for allocation of memory
Date: Thu, 13 Nov 2003 12:34:28 -0800	[thread overview]
Message-ID: <16307.60116.606849.254490@eidolon.muppetlabs.com> (raw)
In-Reply-To: <3FB33D54.9000605@cbf.chinese2000.net>

> I would like to know if the linux kernel has the syscall for memory
> manipulation(allocation, release and resize) that synonymous with
> DOS 48H of INT 21.  I've read some documents saying that these are
> implemented in C library.

The brk system call can be used to enlarge your process's heap. You
can then manage your heap by writing your own set of
malloc-realloc-free functions. Alternately, you can use the mmap
system call to allocate arbitrary pages of memory directly.

b

      parent reply	other threads:[~2003-11-13 20:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-13  8:14 linux system call for allocation of memory Lawrence
2003-11-13 10:19 ` zad
2003-11-13  9:37   ` Lawrence
2003-11-13 11:00     ` zad
2003-11-13 13:38     ` peter w krause
2003-11-13 20:34 ` Brian Raiter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16307.60116.606849.254490@eidolon.muppetlabs.com \
    --to=breadbox@muppetlabs.com \
    --cc=linux-assembly@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).