This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: pageshift?


   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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]