linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ibraheem Umaru-Mohammed <umarumohammed@btinternet.com>
To: Linux C Programming <linux-c-programming@vger.kernel.org>
Subject: Re: How does malloc tell the kernel to allocate more memory?
Date: Sun, 8 Dec 2002 19:42:41 +0000	[thread overview]
Message-ID: <20021208194241.GA15936@btinternet.com> (raw)
In-Reply-To: <20021208192914.GA4262@bandit.kista.gajba.net>

* Boris Bezlaj <boris@bandit.kista.gajba.net> [2002-12-08 19:33]:
> On Sun, Dec 08, 2002 at 12:46:57PM -0600, Joseph D. Wagner wrote:
> > I'm trying to write a tracer on memory allocation, and I'm having a little
> > trouble figuring this out.
> 
> You sure this has not been done before?
> > 
> > At some point, malloc has to call the kernel to tell it to allocate more
> > memory for this user process, right?  I can't figure out which function
> > malloc calls, or where in the code (line number) it's called.
> 
> I dont know much about memory management, but there is some documentation
> at lkdp.tk  ..you might want to check it out, although AFAIK it's not finished yet..
> 

man {sbrk|brk}?

			--ibz
-- 

  reply	other threads:[~2002-12-08 19:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-08 18:46 How does malloc tell the kernel to allocate more memory? Joseph D. Wagner
2002-12-08 19:29 ` Boris Bezlaj
2002-12-08 19:42   ` Ibraheem Umaru-Mohammed [this message]
2002-12-08 21:20 ` Glynn Clements
2002-12-09  0:34   ` How does malloc tell the kernel to allocate more memory? -- CORRECTION Joseph D. Wagner
2002-12-09  6:55 ` How does malloc tell the kernel to allocate more memory? Heinrich du Toit

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=20021208194241.GA15936@btinternet.com \
    --to=umarumohammed@btinternet.com \
    --cc=linux-c-programming@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).