module

Lcrash HOWTO
Prev | Chapter 4. Lcrash Command Reference | Next

# 4.15. module

#### Usage

    module
            [modulename]
            [-f [modulename]]
            [-i iteration_threshold]
            [-w outfile]

#### Description

    Display list of loaded modules and module symbols.

    OPTIONS:
     modulename
           Display information of (all) module structure(s) in linked list
           module_list of the kernel.
           Shows address of module structure, and size, usecount, name of
           module, and modules that depend on the module.
           Equals "cat /proc/modules" in a running Linux system.
     -f [modulename]
           Show list of exported module symbols of (all) module structure(s)
           in linked list module_list of the kernel.
           Equals "cat /proc/ksyms" in a running Linux system.
     -i iteration_threshold
           By default certain loops are interrupted after 10'000 iterations
           to avoid endless loops while following invalid pointers. Using
           this option you can change the threshold for the current command.
           A value '0' means infinite iteration threshold, i.e. no
           interruption of the loop is caused by reaching the threshold.

     The kernel_module can be accessed by using "kernel_module" as
     modulename.

Example 4-10. module

    >> module
        ADDR      SIZE USED NAME                               REFS
    ===========================================================================
    d0103000     17928    1 ibmtr_cs                      []
    d00fe000      6608    2 ds                            [ibmtr_cs]
    d00f3000     23408    2 i82365                        []
    d00e6000     46848    0 pcmcia_core                   [ibmtr_cs
                                                           ds
                                                           i82365]
    c02ad0e0         0    1 kernel_module                 []
    ===========================================================================

    >> module pcmcia_core
        ADDR      SIZE USED NAME                               REFS
    ===========================================================================
    d00e6000     46848    0 pcmcia_core                   [ibmtr_cs
                                                           ds
                                                           i82365]
    ===========================================================================

    >> module pcmcia_core -f
    EXPORTED MODULE SYMBOLS:
    ===========================================================================
            Module: pcmcia_core
            Number of exported symbols: 15

                ADDR NAME [MODULE]

            d00e6120 register_ss_entry                    [pcmcia_core]
            d00e6290 unregister_ss_entry                  [pcmcia_core]
            d00e8d30 CardServices                         [pcmcia_core]
            d00ecb50 MTDHelperEntry                       [pcmcia_core]
            d00f0788 proc_pccard                          [pcmcia_core]
            d00eb800 request_mem_region                   [pcmcia_core]
            d00eb820 release_mem_region                   [pcmcia_core]
            d00f1618 pci_irq_mask                         [pcmcia_core]
            d00ef090 pci_enable_device                    [pcmcia_core]
            d00ef100 pci_set_power_state                  [pcmcia_core]
            d00e6000 __insmod_pcmcia_core_O/lib/modules/2.2.18/pcmcia/pcmcia_
    core.o_M3A6ED7D0_V131602 [pcmcia_core]
            d00e6060 __insmod_pcmcia_core_S.text_L37383   [pcmcia_core]
            d00ef280 __insmod_pcmcia_core_S.rodata_L4779  [pcmcia_core]
            d00f0740 __insmod_pcmcia_core_S.data_L3996    [pcmcia_core]
            d00f16e0 __insmod_pcmcia_core_S.bss_L32       [pcmcia_core]

    ===========================================================================

    >> module kernel_module -f -i 10
    EXPORTED MODULE SYMBOLS:
    ===========================================================================
            Module: kernel_module
            Number of exported symbols: 825

          ADDR NAME [MODULE]
    ---------------------------------------------------------------------------

    0xc027a640 drive_info                           [kernel_module]
    0xc023e7c0 boot_cpu_data                        [kernel_module]
    0xc023e840 EISA_bus                             [kernel_module]
    0xc023e844 MCA_bus                              [kernel_module]
    0xc010f224 __verify_write                       [kernel_module]
    0xc0107680 dump_thread                          [kernel_module]
    0xc010e40c dump_fpu                             [kernel_module]
    0xc010e4b8 dump_extended_fpu                    [kernel_module]
    0xc010fa1c __ioremap                            [kernel_module]
    0xc010fafc iounmap                              [kernel_module]
    WARNING: Iteration threshold reached. Current threshold: 10.
             Use "-i" to change threshold.

    ===========================================================================

Prev | Home | Next
mmap | Up | namelist