version.c 778 B

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