[lug] pte_offset in a device driver isn't being found

Michael J. Hammel mjhammel at graphics-muse.org
Mon Jun 23 08:10:10 MDT 2003


On Mon, 2003-06-23 at 08:34, Jonathan Corbet wrote:
> From include/asm-i386/pgtable.h:
> 
> #define __pte_offset(address) \
>                 ((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
> #define pte_offset(dir, address) ((pte_t *) pmd_page(*(dir)) + \
>                         __pte_offset(address))
> 
> Both forms are there.  Are you using a vanilla kernel, or some
> vendor-patched version?

KRUD 2003-05-01, aka RH 9

In my pgtable.h, the line directly after __pte_offset() is
pte_offset_kernel().

-- 
Michael J. Hammel                               The Graphics Muse 
mjhammel at graphics-muse.org                      http://www.graphics-muse.com
------------------------------------------------------------------------------
A sphere is a mathematical humanity.  Walk the surface and you will find that 
everywhere it is the same and everywhere it is different. -- Michael J. Hammel



More information about the LUG mailing list