lkml.org 
[lkml]   [2004]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Walking all the physical memory in an x86 system
From
Date
On Maw, 2004-11-30 at 17:34, Jan Engelhardt wrote:
> unsigned short p;
> fd = open("/dev/mem", O_RDONLY | O_BINARY);
> lseek(fd, 0x400, SEEK_SET);
> read(fd, &p, 2);

You want ports for that not mem, has always been the case since back
before Linux existed.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.091 / U:0.088 seconds]
©2003-2011 Jasper Spaans. Advertise on this site