Re: Query on directly accessing physical memory from a kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




>> ok yes, that makes sense.
>> Now suppose I want to access the second byte/word from each page frame (physical) in the system (or a random set of  
>> page frames), would I need to do something similar ?
>>
>> On the same topic, how can a page frame (struct page) be resolved to its physical address ?

> The process I just described is to access any physical address (Any byte / word). The concept of page frames etc are at a higher level.
 
> To convert to physical address from page frame no, I recall there would be a macro in some header (some thing like __pfn_to_pa or something like that ... I don't recall exactly)
 

Ok great, I'll look into this, try it and post again if need be.

Thanks again for your help.
ARN

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux