All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Joseph D. Wagner" <wagnerjd@prodigy.net>
To: Linux C Programming <linux-c-programming@vger.kernel.org>,
	Linux Newbie <linux-newbie@vger.kernel.org>
Subject: How does malloc tell the kernel to allocate more memory?
Date: Sun, 8 Dec 2002 12:46:57 -0600	[thread overview]
Message-ID: <000301c29eea$3107dd10$032a1c43@joe> (raw)

I'm trying to write a tracer on memory allocation, and I'm having a little
trouble figuring this out.

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'm looking at glib-2.3.1 to try and find my answers.  After all, that's
where malloc is defined, right?

TIA.

Joseph Wagner


             reply	other threads:[~2002-12-08 18:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-08 18:46 Joseph D. Wagner [this message]
2002-12-08 19:29 ` How does malloc tell the kernel to allocate more memory? Boris Bezlaj
2002-12-08 19:42   ` Ibraheem Umaru-Mohammed
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='000301c29eea$3107dd10$032a1c43@joe' \
    --to=wagnerjd@prodigy.net \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=linux-newbie@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.