Messages in this thread | | | Date | Tue, 30 Nov 2004 18:34:41 +0100 (MET) | From | Jan Engelhardt <> | Subject | Re: Walking all the physical memory in an x86 system |
| |
>> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |