hi i need to map user to kernel space
but i need to get the phys add of the user mem ( i only have the vert
add ) ?
and is kernel 2.2.9 dif from 2.3.x
this is the code that i was using
#define nv_virt_to_phys(mm,addr) \
virt_to_phys(( \
pte_page( \
*pte_offset( \
pmd_offset( \
pgd_offset(mm, (addr)), \
addr), \
(addr)) \
) | ((addr) & (~PAGE_MASK))))
but it dose not work and it Oops the kernel
Unable to handle kernel Null pointer defererence at virtual address
0000000c
Thank you
David <sector2@ihug.co.nz>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:17 EST