version.c 868 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * linux/init/version.c
  3. *
  4. * Copyright (C) 1992 Theodore Ts'o
  5. *
  6. * May be freely distributed as part of Linux.
  7. */
  8. #include <linux/compile.h>
  9. #include <linux/module.h>
  10. #include <linux/uts.h>
  11. #include <linux/utsname.h>
  12. #include <linux/utsrelease.h>
  13. #include <linux/version.h>
  14. #include <linux/sched.h>
  15. #define version(a) Version_ ## a
  16. #define version_string(a) version(a)
  17. int version_string(LINUX_VERSION_CODE);
  18. struct uts_namespace init_uts_ns = {
  19. .kref = {
  20. .refcount = ATOMIC_INIT(2),
  21. },
  22. .name = {
  23. .sysname = UTS_SYSNAME,
  24. .nodename = UTS_NODENAME,
  25. .release = UTS_RELEASE,
  26. .version = UTS_VERSION,
  27. .machine = UTS_MACHINE,
  28. .domainname = UTS_DOMAINNAME,
  29. },
  30. };
  31. EXPORT_SYMBOL_GPL(init_uts_ns);
  32. const char linux_banner[] =
  33. "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
  34. LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";