any way to see the running kernel's "vermagic" string?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  perhaps i've just overlooked it but is there an easy way to see the
current kernel's calculated "vermagic" string, as defined in the
header file include/linux/vermagic.h thusly?

... snip ...
#define VERMAGIC_STRING                                                 \
        UTS_RELEASE " "                                                 \
        MODULE_VERMAGIC_SMP MODULE_VERMAGIC_PREEMPT                     \
        MODULE_VERMAGIC_MODULE_UNLOAD MODULE_VERMAGIC_MODVERSIONS       \
        MODULE_ARCH_VERMAGIC

  i'm just interested in examining the vermagic string you can see for
any loadable module, as in:

$ modinfo vfat
filename:       /lib/modules/3.6.0-oct8+/kernel/fs/fat/vfat.ko
author:         Gordon Chaffee
description:    VFAT filesystem support
license:        GPL
srcversion:     68B6C644F1532E86ADCB2CB
depends:        fat
intree:         Y
vermagic:       3.6.0-oct8+ SMP mod_unload modversions

and following the load logic in kernel/module.c to see what happens at
each step of a module load, and that (obviously) involves some
comparisons.  thanks.

rday


-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux