11da177e4SLinus Torvalds /* 21da177e4SLinus Torvalds * linux/init/version.c 31da177e4SLinus Torvalds * 41da177e4SLinus Torvalds * Copyright (C) 1992 Theodore Ts'o 51da177e4SLinus Torvalds * 61da177e4SLinus Torvalds * May be freely distributed as part of Linux. 71da177e4SLinus Torvalds */ 81da177e4SLinus Torvalds 91da177e4SLinus Torvalds #include <linux/compile.h> 101da177e4SLinus Torvalds #include <linux/module.h> 111da177e4SLinus Torvalds #include <linux/uts.h> 121da177e4SLinus Torvalds #include <linux/utsname.h> 131da177e4SLinus Torvalds #include <linux/version.h> 141da177e4SLinus Torvalds 151da177e4SLinus Torvalds #define version(a) Version_ ## a 161da177e4SLinus Torvalds #define version_string(a) version(a) 171da177e4SLinus Torvalds 181da177e4SLinus Torvalds int version_string(LINUX_VERSION_CODE); 191da177e4SLinus Torvalds 201da177e4SLinus Torvalds struct new_utsname system_utsname = { 211da177e4SLinus Torvalds .sysname = UTS_SYSNAME, 221da177e4SLinus Torvalds .nodename = UTS_NODENAME, 231da177e4SLinus Torvalds .release = UTS_RELEASE, 241da177e4SLinus Torvalds .version = UTS_VERSION, 251da177e4SLinus Torvalds .machine = UTS_MACHINE, 261da177e4SLinus Torvalds .domainname = UTS_DOMAINNAME, 271da177e4SLinus Torvalds }; 281da177e4SLinus Torvalds 291da177e4SLinus Torvalds EXPORT_SYMBOL(system_utsname); 301da177e4SLinus Torvalds 311da177e4SLinus Torvalds const char linux_banner[] = 321da177e4SLinus Torvalds "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@" 331da177e4SLinus Torvalds LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n"; 34