Contributors: 17
Author Tokens Token Proportion Commits Commit Proportion
Dan Moulding 79 34.65% 1 4.17%
Roman Zippel 32 14.04% 1 4.17%
Linus Torvalds (pre-git) 23 10.09% 3 12.50%
Serge E. Hallyn 21 9.21% 2 8.33%
Brian Gerst 18 7.89% 1 4.17%
Al Viro 18 7.89% 2 8.33%
Eric W. Biedermann 6 2.63% 1 4.17%
Arnaldo Carvalho de Melo 5 2.19% 1 4.17%
Yonghong Song 5 2.19% 1 4.17%
Laura Abbott 5 2.19% 1 4.17%
Sam Ravnborg 4 1.75% 3 12.50%
Kirill V Tkhai 4 1.75% 1 4.17%
Rusty Russell 3 1.32% 1 4.17%
Linus Torvalds 2 0.88% 2 8.33%
Masahiro Yamada 1 0.44% 1 4.17%
David Howells 1 0.44% 1 4.17%
Thomas Gleixner 1 0.44% 1 4.17%
Total 228 24


// SPDX-License-Identifier: GPL-2.0-only
/*
 *  linux/init/version.c
 *
 *  Copyright (C) 1992  Theodore Ts'o
 *
 *  May be freely distributed as part of Linux.
 */

#include <generated/compile.h>
#include <linux/build-salt.h>
#include <linux/elfnote-lto.h>
#include <linux/export.h>
#include <linux/init.h>
#include <linux/printk.h>
#include <linux/uts.h>
#include <linux/utsname.h>
#include <generated/utsrelease.h>
#include <linux/version.h>
#include <linux/proc_ns.h>

struct uts_namespace init_uts_ns = {
	.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,
#ifdef CONFIG_UTS_NS
	.ns.ops = &utsns_operations,
#endif
};
EXPORT_SYMBOL_GPL(init_uts_ns);

static int __init early_hostname(char *arg)
{
	size_t bufsize = sizeof(init_uts_ns.name.nodename);
	size_t maxlen  = bufsize - 1;
	size_t arglen;

	arglen = strlcpy(init_uts_ns.name.nodename, arg, bufsize);
	if (arglen > maxlen) {
		pr_warn("hostname parameter exceeds %zd characters and will be truncated",
			maxlen);
	}
	return 0;
}
early_param("hostname", early_hostname);

/* FIXED STRINGS! Don't touch! */
const char linux_banner[] =
	"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;
BUILD_LTO_INFO;