Re: Walking all the physical memory in an x86 system

From: Alan Cox (alan_at_lxorguk.ukuu.org.uk)
Date: 11/30/04

  • Next message: Avi Kivity: "Re: [PATCH] [Request for inclusion] Filesystem in Userspace"
    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/


  • Next message: Avi Kivity: "Re: [PATCH] [Request for inclusion] Filesystem in Userspace"

    Relevant Pages

    • Re: Linux 2.6.9-ac16
      ... On Sad, 2004-12-18 at 15:06, Jan Engelhardt wrote: ... Or boot with mem=. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Walking all the physical memory in an x86 system
      ... > You want ports for that not mem, has always been the case since back ... the addresses of up to 4 ports for the serial communications ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.4.23-pre9 ide+XFree+ptrace=Complete hang
      ... there is any way to get the Xserver running without ioplbut using ... ioperm instead - I know that the io bitmap is only 0x400 ports, ... Any ideas on how to trace this down? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Benchmarking objrmap under memory pressure
      ... I see what you mean with mem= being troublesome, I forgot you're numa=y, ... that you should find in arch/i386/kernel/setup.c, that should work w/o ... everything else numa is built on top of that map, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: HP C2502 SCSI card (NCR 53C400A based) not working
      ... I was surprised that the values sent to the ports are ... > not the same as in the g_NCR5380 driver. ... It should work in 2.4 providing you use the loading options for ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)