cregit-Linux how code gets into the kernel

Release 4.14 arch/mips/fw/arc/arc_con.c

Directory: arch/mips/fw/arc
// SPDX-License-Identifier: GPL-2.0
/*
 * Wrap-around code for a console using the
 * ARC io-routines.
 *
 * Copyright (c) 1998 Harald Koerfgen
 * Copyright (c) 2001 Ralf Baechle
 * Copyright (c) 2002 Thiemo Seufer
 */
#include <linux/tty.h>
#include <linux/major.h>
#include <linux/init.h>
#include <linux/console.h>
#include <linux/fs.h>
#include <asm/sgialib.h>


static void prom_console_write(struct console *co, const char *s, unsigned count) { /* Do each character */ while (count--) { if (*s == '\n') prom_putchar('\r'); prom_putchar(*s++); } }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds3780.43%150.00%
Ralf Bächle919.57%150.00%
Total46100.00%2100.00%


static int prom_console_setup(struct console *co, char *options) { return !(prom_flags & PROM_FLAG_USE_AS_CONSOLE); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds1773.91%150.00%
Ralf Bächle626.09%150.00%
Total23100.00%2100.00%

static struct console arc_cons = { .name = "arc", .write = prom_console_write, .setup = prom_console_setup, .flags = CON_PRINTBUFFER, .index = -1, }; /* * Register console. */
static int __init arc_console_init(void) { register_console(&arc_cons); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds1372.22%133.33%
Ralf Bächle422.22%133.33%
Alan Cox15.56%133.33%
Total18100.00%3100.00%

console_initcall(arc_console_init);

Overall Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds9867.12%125.00%
Ralf Bächle4128.08%125.00%
Alan Cox64.11%125.00%
Greg Kroah-Hartman10.68%125.00%
Total146100.00%4100.00%
Directory: arch/mips/fw/arc
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.