pageshift?

David S. Miller davem@redhat.com
Sat Oct 21 09:36:00 GMT 2000


   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


More information about the Libc-alpha mailing list