linux-newbie.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sri Ram Vemulpali <sri.ram.gmu06@gmail.com>
To: linux-newbie@vger.kernel.org,
	linux-kernel-mail <linux-kernel@vger.kernel.org>
Subject: Question on Memory management unit
Date: Sat, 8 Dec 2012 19:08:08 -0500	[thread overview]
Message-ID: <CALyraeP41AEZFD=cHZT_PYgUZ+nrvDfTMQ1t9qtuFJ-cOEssiQ@mail.gmail.com> (raw)

Hi Guys,

I have question on memory management in linux kernel.

From my understanding memory is divided into 3GB and 1GB for 32-bit
architectures. 1GB is allocated to kernel space and 3GB is allocated
to user space.

To access any memory in kernel space, it should be mapped in to kernel
virtual address space.

My question is how do we know kernel address space (virtual address).
Can we recognize a range of addresses, if so what is that range of
kernel virtual address?

What function returns kernel virtual address. Or do we need to map to
get kernel virtual address.

I know kmalloc returns logical address and vmalloc returns virtual address.
And all these addresses should go through MMU to access physical
memory. So there will be page mappings in kernel for these addresses.
Is this true?

Thanks in advance.
-- 
Regards,
Sri.

             reply	other threads:[~2012-12-09  0:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-09  0:08 Sri Ram Vemulpali [this message]
2012-12-10 15:01 ` Question on Memory management unit Javier Domingo

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='CALyraeP41AEZFD=cHZT_PYgUZ+nrvDfTMQ1t9qtuFJ-cOEssiQ@mail.gmail.com' \
    --to=sri.ram.gmu06@gmail.com \
    --cc=linux-kernel@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 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 read-only IMAP folder(s) and NNTP newsgroup(s).