This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: pageshift?
- To: howarth at bromo dot med dot uc dot edu
- Subject: Re: pageshift?
- From: "David S. Miller" <davem at redhat dot com>
- Date: Sat, 21 Oct 2000 09:22:17 -0700
- CC: drepper at redhat dot com, libc-alpha at sources dot redhat dot com
- References: <200010211620.JAA92684@bromo.med.uc.edu>
Date: Sat, 21 Oct 2000 09:20:07 -0700 (PDT)
From: Jack Howarth <howarth@bromo.med.uc.edu>
I believe they should be able to get PAGE_SIZE from the
_getpagesize() call declared in sys/shm.h however I am unclear how
to back calculate PAGE_SHIFT. The asm/page.h header contains...
It's simple math, PAGE_SHIFT == log2(PAGE_SIZE);
Later,
David S. Miller
davem@redhat.com