linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Alan Wang" <wung_y@263.net>
To: linux-mm mail list <linux-mm@kvack.org>
Subject: about get_pte_fast and more
Date: Sat, 2 Oct 1999 17:02:03 +0800	[thread overview]
Message-ID: <000301bf0cb4$cbd31c40$0601a8c0@honey.cs.tsinghua.edu.cn> (raw)

Hi, all:
 I am studying the source code of mm in linux. Here, I have a question and I
am looking forward for any of your comments.
 The question have bother me for a long time is about some functions defined
in arch/i386/pgtable.h. to make it clear, I paste one of them here:

extern __inline__ pte_t *get_pte_fast(void)
{
 unsigned long *ret;

 if((ret = (unsigned long *)pte_quicklist) != NULL) {
  pte_quicklist = (unsigned long *)(*ret);
  ret[0] = ret[1];
  pgtable_cache_size--;
 }
 return (pte_t *)ret;
}

my questions are:
1. what is pte_quicklist and pgd_quicklist? Are they TLB?
2.what!?s on earth the function of these strange code? It appears
pte_quicklist is only a pointer to long integer but never a list and why
!(R)ret[0]=ret[1]!??

thank you.

Wang


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

                 reply	other threads:[~1999-10-02  9:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='000301bf0cb4$cbd31c40$0601a8c0@honey.cs.tsinghua.edu.cn' \
    --to=wung_y@263.net \
    --cc=linux-mm@kvack.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