version.c 748 B

123456789101112131415161718192021222324252627282930313233
  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/version.h>
  13. #define version(a) Version_ ## a
  14. #define version_string(a) version(a)
  15. int version_string(LINUX_VERSION_CODE);
  16. struct new_utsname system_utsname = {
  17. .sysname = UTS_SYSNAME,
  18. .nodename = UTS_NODENAME,
  19. .release = UTS_RELEASE,
  20. .version = UTS_VERSION,
  21. .machine = UTS_MACHINE,
  22. .domainname = UTS_DOMAINNAME,
  23. };
  24. EXPORT_SYMBOL(system_utsname);
  25. const char linux_banner[] =
  26. "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
  27. LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";