/* * the pte page can be thought of an array like this: pte_t[PTRS_PER_PTE] * * this function returns the index of the entry in the pte page which would * control the given virtual address */ static inline unsigned long pte_index(unsigned long address) { return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1);
}