On 8/10/09, Basavaraj Dengi <basavarajdengi@xxxxxxxxx> wrote: > Hi > > In the piece of code below > > pfn = (addr >> PAGE_SHIFT); > if (!pfn_valid(pfn)) > > [Where PAGE_SHIFT is 12; and addr I tried from 0x0 to > 0xc0000000] > pfn_valid always fails; > > What is wrong? Am I missing something? Next time, please start fresh new thread instead of being a part of another discussion. At least in my Gmail thread's view, your post is placed under Himanshu's. About your question, I find that a bit strange. In what condition do you test those codes? And do you see it fail for all addresses in 0-0xc0000000 range or just few of them? And btw, we're talking about x86 32 bit, right? -- regards, Mulyadi Santosa Freelance Linux trainer blog: the-hydra.blogspot.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ