Linux-kernel mailing list archive 2000-32,: Re: Module mapping to mem/kmem?

# Re: Module mapping to mem/kmem?

Amit S. Kale (akale@veritas.com)
Fri, 11 Aug 2000 14:12:00 +0530

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: David Woodhouse: "Re: [patch?] Re: Do ramdisk exec's map direct to buffer cache?"
- Previous message: octave klaba: "oops 2.2.17pre15"
- Maybe in reply to: Dave Cecil: "Module mapping to mem/kmem?"

Dave Cecil wrote:
>
> Firstly, please forgive me if the questions I ask are ignorant. I'm on a
> steep learning curve at present.
>
> I want to display the value of a variable in my loadable module, but of
> course gdb vmlinux /proc/kcore can't do that.
>
> I believe that I should be able to get at that value via /dev/mem or
> /dev/kmem, given that I know the address of the variable.

You can use /dev/kmem with virtual address of a symbol.
/dev/kmem can be used to read any *valid* virtual address.

(/dev/kmem can be used to write to kernel data but not module
data)

    --
    Amit Kale
    Veritas Software ( http://www.veritas.com )

    -
    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/

- Next message: David Woodhouse: "Re: [patch?] Re: Do ramdisk exec's map direct to buffer cache?"
- Previous message: octave klaba: "oops 2.2.17pre15"
- Maybe in reply to: Dave Cecil: "Module mapping to mem/kmem?"