From: stman937-linewbie@yahoo.com (StephanT) Date: Mon, 17 Oct 2011 13:04:23 -0700 (PDT) Subject: How can I test if a physical address is already mapped or not. Message-ID: <1318881863.52041.YahooMailNeo@web30802.mail.mud.yahoo.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi all, In a kernel module is there a way to test if an address range has? been already mapped by the kernel or not.? Ex: ?(on a PC with the latest kernel) - an access to physical 0xC0000000 will return the value at this address - an access to physical 0x00100000 will have the kernel kill the module/application? ?? ? ? ? ? using the module. Dmesg: BUG: unable to handle kernel paging request at 00100000. How can I test this condition before dereferencing the address.? Thanks, Stephan. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111017/a587bfc3/attachment.html