cregit-Linux how code gets into the kernel

Release 4.15 arch/arm/kernel/early_printk.c

Directory: arch/arm/kernel
/*
 *  linux/arch/arm/kernel/early_printk.c
 *
 *  Copyright (C) 2009 Sascha Hauer <s.hauer@pengutronix.de>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#include <linux/kernel.h>
#include <linux/console.h>
#include <linux/init.h>
#include <linux/string.h>

extern void printascii(const char *);


static void early_write(const char *s, unsigned n) { char buf[128]; while (n) { unsigned l = min(n, sizeof(buf)-1); memcpy(buf, s, l); buf[l] = 0; s += l; n -= l; printascii(buf); } }

Contributors

PersonTokensPropCommitsCommitProp
Nico Pitre4260.00%150.00%
Catalin Marinas2840.00%150.00%
Total70100.00%2100.00%


static void early_console_write(struct console *con, const char *s, unsigned n) { early_write(s, n); }

Contributors

PersonTokensPropCommitsCommitProp
Catalin Marinas26100.00%1100.00%
Total26100.00%1100.00%

static struct console early_console_dev = { .name = "earlycon", .write = early_console_write, .flags = CON_PRINTBUFFER | CON_BOOT, .index = -1, };
static int __init setup_early_printk(char *buf) { early_console = &early_console_dev; register_console(&early_console_dev); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Catalin Marinas1976.00%150.00%
Thomas Gleixner624.00%150.00%
Total25100.00%2100.00%

early_param("earlyprintk", setup_early_printk);

Overall Contributors

PersonTokensPropCommitsCommitProp
Catalin Marinas12468.89%133.33%
Nico Pitre4927.22%133.33%
Thomas Gleixner73.89%133.33%
Total180100.00%3100.00%
Directory: arch/arm/kernel
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.