mmap'ing /dev/mem

Philip Gladstone (philip@raptor.com)
Mon, 08 Jun 1998 16:56:06 -0400


When I try and map /dev/kmem, many of the pages that I get back
are all 0. This is strange as the actual pages contain data.

>From a quick look at the code in remap_pte_range, it only seems
to map pages which are above the top of ram (for access
to devices) or which are Reserved. I don't understand which
pages fall into the latter category -- in particular a page
which contains a networking buffer doesn't seem to be
included.

Happily, reading from /dev/kmem works fine, but I had hoped
to avoid all the data copying.

Is there a reason for this inconsistency?

Philip

-- 
Philip Gladstone                           +1 781 530 2461
Raptor Systems / Axent Technologies 
Waltham, MA         		    http://www.raptor.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu