lkml.org 
[lkml]   [1998]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectmmap'ing /dev/mem
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

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.020 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site