Blame view

init/version.c 1.06 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
6
7
8
9
10
11
12
  /*
   *  linux/init/version.c
   *
   *  Copyright (C) 1992  Theodore Ts'o
   *
   *  May be freely distributed as part of Linux.
   */
  
  #include <linux/compile.h>
  #include <linux/module.h>
  #include <linux/uts.h>
  #include <linux/utsname.h>
63104eec2   Sam Ravnborg   kbuild: introduce...
13
  #include <linux/utsrelease.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
14
  #include <linux/version.h>
197dcffc8   Daniel Guilak   init/version.c: d...
15
  #ifndef CONFIG_KALLSYMS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
16
17
  #define version(a) Version_ ## a
  #define version_string(a) version(a)
277e2c695   Daniel Guilak   init/version.c: s...
18
  extern int version_string(LINUX_VERSION_CODE);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
19
  int version_string(LINUX_VERSION_CODE);
197dcffc8   Daniel Guilak   init/version.c: d...
20
  #endif
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
21

4865ecf13   Serge E. Hallyn   [PATCH] namespace...
22
23
24
25
26
27
28
29
30
31
32
33
  struct uts_namespace init_uts_ns = {
  	.kref = {
  		.refcount	= ATOMIC_INIT(2),
  	},
  	.name = {
  		.sysname	= UTS_SYSNAME,
  		.nodename	= UTS_NODENAME,
  		.release	= UTS_RELEASE,
  		.version	= UTS_VERSION,
  		.machine	= UTS_MACHINE,
  		.domainname	= UTS_DOMAINNAME,
  	},
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
34
  };
4865ecf13   Serge E. Hallyn   [PATCH] namespace...
35
  EXPORT_SYMBOL_GPL(init_uts_ns);
3eb3c740f   Roman Zippel   [PATCH] fix linux...
36

c71551ad3   Linus Torvalds   Don't put "linux_...
37
38
  /* FIXED STRINGS! Don't touch! */
  const char linux_banner[] =
3eb3c740f   Roman Zippel   [PATCH] fix linux...
39
40
41
42
43
44
45
46
47
  	"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
  	LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "
  ";
  
  const char linux_proc_banner[] =
  	"%s version %s"
  	" (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
  	" (" LINUX_COMPILER ") %s
  ";