pgd =pgd_offset(mm, addr);if(pgd) { pmd = pmd_offset(pgd, addr);if(pmd) pte = pte_offset_map(pmd, addr); }returnpte; } 开发者ID:kzlin129,项目名称:tt-gpl,代码行数:14,代码来源:hugetlbpage.c 示例5: pgd_offset ▲点赞 1▼ pte_t*huge_pte_alloc(struct mm_struct *mm,unsigned...
va=VMALLOC_VMADDR((unsignedlong)address);/* get the page directory. Use the kernel memory map. */pgd =pgd_offset_k(va);/* check whether we found an entry */if(!pgd_none(*pgd)) {/*I'm not sure if we need this, or the line for 2.4*//*above will work reliably too*//*If ...