* about get_pte_fast and more
@ 1999-10-02 9:02 Alan Wang
0 siblings, 0 replies; only message in thread
From: Alan Wang @ 1999-10-02 9:02 UTC (permalink / raw)
To: linux-mm mail list
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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-10-02 9:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-02 9:02 about get_pte_fast and more Alan Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox