All of lore.kernel.org
 help / color / mirror / Atom feed
* How can I test if a physical address is already mapped or not.
@ 2011-10-17 20:04 StephanT
  2011-10-18  5:52 ` Rajat Sharma
  2011-10-19 16:04 ` Trouble removing character device Kai Meyer
  0 siblings, 2 replies; 20+ messages in thread
From: StephanT @ 2011-10-17 20:04 UTC (permalink / raw)
  To: kernelnewbies

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 

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2011-10-20 15:41 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-17 20:04 How can I test if a physical address is already mapped or not StephanT
2011-10-18  5:52 ` Rajat Sharma
2011-10-18 17:23   ` StephanT
2011-10-18 20:47     ` Jeff Haran
2011-10-18 20:58       ` StephanT
2011-10-18 21:16         ` Jeff Haran
2011-10-19  0:28           ` StephanT
2011-10-19  0:46             ` Jeff Haran
2011-10-19  1:01               ` StephanT
2011-10-19  1:16                 ` Jeff Haran
2011-10-19  5:48                   ` Rajat Sharma
2011-10-19 17:10                     ` StephanT
2011-10-19 16:04 ` Trouble removing character device Kai Meyer
2011-10-19 20:18   ` Daniel Baluta
2011-10-19 20:55     ` Kai Meyer
2011-10-19 21:34       ` Understanding memcpy Kai Meyer
2011-10-20  4:00         ` rohan puri
2011-10-20 15:40           ` Kai Meyer
2011-10-20  3:47       ` Trouble removing character device rohan puri
2011-10-20 15:41         ` Kai Meyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.