Re: Walking all the physical memory in an x86 system

From: Jan Engelhardt
Date: Tue Nov 30 2004 - 12:36:59 EST


>> what have They done with /dev/mem? ... one once could access e.g.
>> position 0x400 of /dev/mem (by seeking) and then read the LPT port value.
>
>Are you thinking of /dev/port ?

No, I was thinking of:

unsigned short p;
fd = open("/dev/mem", O_RDONLY | O_BINARY);
lseek(fd, 0x400, SEEK_SET);
read(fd, &p, 2);


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