【发布时间】:2012-06-21 09:01:47
【问题描述】:
我正在遍历 VMALLOC_START 和 VMALLOC_END 之间的页面,我想要 检查我每次得到的地址是否有效。 我该如何管理?
我这样遍历页面:
unsigned long *p;
for(p = (unsigned long *) VMALLOC_START; p <= (unsigned long *) (VMALLOC_END - PAGE_SIZE); p += PAGE_SIZE)
{
//How to check if p is OK to access it?
}
谢谢!
【问题讨论】:
标签: linux linux-kernel linux-device-driver kernel