lkml.org 
[lkml]   [2015]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectread physical address space
From
Hi,

I am new to kernel and working on a college project.

I have kernel module which takes process ID. Based on the PID, I walk
its page tables and get to PTE for a particular VMA area.

I convert PTE to physical address (phy_addr) and now I want to read
from the that physical address.

I have made sure the page containing the physical address is mapped
but if I do printk (*phys_addr) , then kernel crashes.

I think I am missing some important concept here. Do I need another
driver to access physical space, may be a PCI driver as RAM being a
PCI device ?

Thanks
Alan


\
 
 \ /
  Last update: 2015-11-17 16:41    [W:0.086 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site