Re: /dev/kmem

From: Russell King (rmk@arm.linux.org.uk)
Date: Sat May 06 2000 - 12:34:51 EDT

  • Next message: thunder7@xs4all.nl: "pre7-6 oops in sys_mount"

    George Anzinger writes:
    > The question is which of the several kernels was booted? Does the boot
    > code leave this somewhere it can be found? For example, a program can
    > look at its 0'th parameter to find the file name it is running under.
    > Can the system do something like this?

    Yes. I believe lilo passes something like a "BOOT_IMAGE=" parameter to
    the kernel when it boots. The value that gets passed is the label
    name of the running kernel in /etc/lilo.conf.

    If you make the labels the same as an extension to the System.map file,
    you can easily pull this from /proc/cmdline, and insert the relevent
    link at run time.
       _____
      |_____| ------------------------------------------------- ---+---+-
      | | Russell King rmk@arm.linux.org.uk --- ---
      | | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
      | +-+-+ --- -+-
      / | THE developer of ARM Linux |+| /|\
     / | | | --- |
        +-+-+ ------------------------------------------------- /\\\ |

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



    This archive was generated by hypermail 2b29 : Sat May 06 2000 - 12:37:40 EDT