Re: PAGE_SIZE query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Tue, Apr 22, 2008 at 1:54 AM, Mrunal Gawade <mrunal.gawade@xxxxxxxxx> wrote:
Right. But It should be always a right shift right? Why your example has a left shift 1 << PAGE_SHIFT?

use right shift ( of 32 bit address ) to get page number from the 32 bit address
use left shift ( of page number ) to get the 32 bit address of the first byte of that page


cheers,
Nikhil



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux