Back to home page

LXR

 
 

    


0001 /*
0002  *  linux/init/version.c
0003  *
0004  *  Copyright (C) 1992  Theodore Ts'o
0005  *
0006  *  May be freely distributed as part of Linux.
0007  */
0008 
0009 #include <generated/compile.h>
0010 #include <linux/module.h>
0011 #include <linux/uts.h>
0012 #include <linux/utsname.h>
0013 #include <generated/utsrelease.h>
0014 #include <linux/version.h>
0015 #include <linux/proc_ns.h>
0016 
0017 #ifndef CONFIG_KALLSYMS
0018 #define version(a) Version_ ## a
0019 #define version_string(a) version(a)
0020 
0021 extern int version_string(LINUX_VERSION_CODE);
0022 int version_string(LINUX_VERSION_CODE);
0023 #endif
0024 
0025 struct uts_namespace init_uts_ns = {
0026     .kref = {
0027         .refcount   = ATOMIC_INIT(2),
0028     },
0029     .name = {
0030         .sysname    = UTS_SYSNAME,
0031         .nodename   = UTS_NODENAME,
0032         .release    = UTS_RELEASE,
0033         .version    = UTS_VERSION,
0034         .machine    = UTS_MACHINE,
0035         .domainname = UTS_DOMAINNAME,
0036     },
0037     .user_ns = &init_user_ns,
0038     .ns.inum = PROC_UTS_INIT_INO,
0039 #ifdef CONFIG_UTS_NS
0040     .ns.ops = &utsns_operations,
0041 #endif
0042 };
0043 EXPORT_SYMBOL_GPL(init_uts_ns);
0044 
0045 /* FIXED STRINGS! Don't touch! */
0046 const char linux_banner[] =
0047     "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
0048     LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
0049 
0050 const char linux_proc_banner[] =
0051     "%s version %s"
0052     " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
0053     " (" LINUX_COMPILER ") %s\n";