Re: Walking all the physical memory in an x86 system
From: Alan Cox (alan_at_lxorguk.ukuu.org.uk)
Date: 11/30/04
- Previous message: Alan Cox: "Re: user- vs kernel-level resource sandbox for Linux?"
- In reply to: Jan Engelhardt: "Re: Walking all the physical memory in an x86 system"
- Next in thread: linux-os: "Re: Walking all the physical memory in an x86 system"
- Reply: linux-os: "Re: Walking all the physical memory in an x86 system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Jan Engelhardt <jengelh@linux01.gwdg.de> Date: Tue, 30 Nov 2004 18:50:20 +0000
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/
- Previous message: Alan Cox: "Re: user- vs kernel-level resource sandbox for Linux?"
- In reply to: Jan Engelhardt: "Re: Walking all the physical memory in an x86 system"
- Next in thread: linux-os: "Re: Walking all the physical memory in an x86 system"
- Reply: linux-os: "Re: Walking all the physical memory in an x86 system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|