cregit-Linux how code gets into the kernel

Release 4.11 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>

extern void printch(int);


static void early_write(const char *s, unsigned n) { while (n-- > 0) { if (*s == '\n') printch('\r'); printch(*s); s++; } }

Contributors

PersonTokensPropCommitsCommitProp
Catalin Marinas44100.00%1100.00%
Total44100.00%1100.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 Marinas14295.30%150.00%
Thomas Gleixner74.70%150.00%
Total149100.00%2100.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.