Accessing page 0 from a kernel module
As an experiment, I am trying to access the data in the first page of real memory. This corresponds to real addresses 0..0xFFF, inclusive. I am running openSuse 10.1 (kernel 2.6.16) and have code running in a kernel module (specifically, a device driver). The hardware is a Dell IA32 based server with 2GB of real memory.
I know I can't simply set a char * variable to 0 - we all know what happens when a null pointer is dereferenced. Is there a trick to accessing this data?
Thanks - Martin