kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* any way to see the running kernel's "vermagic" string?
@ 2012-10-16 14:52 Robert P. J. Day
  2012-10-16 14:59 ` Chinmay V S
  2012-10-16 18:35 ` Frank Ch. Eigler
  0 siblings, 2 replies; 7+ messages in thread
From: Robert P. J. Day @ 2012-10-16 14:52 UTC (permalink / raw)
  To: kernelnewbies


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-10-16 18:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-16 14:52 any way to see the running kernel's "vermagic" string? Robert P. J. Day
2012-10-16 14:59 ` Chinmay V S
2012-10-16 15:05   ` Peter Senna Tschudin
2012-10-16 15:07     ` Robert P. J. Day
2012-10-16 15:06   ` Robert P. J. Day
2012-10-16 15:32     ` Peter Senna Tschudin
2012-10-16 18:35 ` Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).