Files
kernel/init/version.c
T

48 lines
1.1 KiB
C
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0-only
2005-04-16 15:20:36 -07:00
/*
* linux/init/version.c
*
* Copyright (C) 1992 Theodore Ts'o
*
* May be freely distributed as part of Linux.
*/
2009-10-18 00:36:47 +02:00
#include <generated/compile.h>
#include <linux/build-salt.h>
#include <linux/export.h>
2005-04-16 15:20:36 -07:00
#include <linux/uts.h>
#include <linux/utsname.h>
#include <generated/utsrelease.h>
2005-04-16 15:20:36 -07:00
#include <linux/version.h>
#include <linux/proc_ns.h>
2005-04-16 15:20:36 -07:00
struct uts_namespace init_uts_ns = {
2020-08-03 13:16:21 +03:00
.ns.count = REFCOUNT_INIT(2),
.name = {
.sysname = UTS_SYSNAME,
.nodename = UTS_NODENAME,
.release = UTS_RELEASE,
.version = UTS_VERSION,
.machine = UTS_MACHINE,
.domainname = UTS_DOMAINNAME,
},
.user_ns = &init_user_ns,
.ns.inum = PROC_UTS_INIT_INO,
2014-11-01 02:32:53 -04:00
#ifdef CONFIG_UTS_NS
.ns.ops = &utsns_operations,
#endif
2005-04-16 15:20:36 -07:00
};
EXPORT_SYMBOL_GPL(init_uts_ns);
2007-01-10 14:45:28 +01:00
/* FIXED STRINGS! Don't touch! */
const char linux_banner[] =
2007-01-10 14:45:28 +01:00
"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
const char linux_proc_banner[] =
"%s version %s"
" (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
" (" LINUX_COMPILER ") %s\n";
BUILD_SALT;