cregit-Linux how code gets into the kernel

Release 4.14 arch/um/kernel/kmsg_dump.c

Directory: arch/um/kernel
// SPDX-License-Identifier: GPL-2.0
#include <linux/kmsg_dump.h>
#include <linux/console.h>
#include <shared/init.h>
#include <shared/kern.h>
#include <os.h>


static void kmsg_dumper_stdout(struct kmsg_dumper *dumper, enum kmsg_dump_reason reason) { static char line[1024]; size_t len = 0; bool con_available = false; /* only dump kmsg when no console is available */ if (!console_trylock()) return; if (console_drivers != NULL) con_available = true; console_unlock(); if (con_available == true) return; printf("kmsg_dump:\n"); while (kmsg_dump_get_line(dumper, true, line, sizeof(line), &len)) { line[len] = '\0'; printf("%s", line); } }

Contributors

PersonTokensPropCommitsCommitProp
Thomas Meyer100100.00%1100.00%
Total100100.00%1100.00%

static struct kmsg_dumper kmsg_dumper = { .dump = kmsg_dumper_stdout };
int __init kmsg_dumper_stdout_init(void) { return kmsg_dump_register(&kmsg_dumper); }

Contributors

PersonTokensPropCommitsCommitProp
Thomas Meyer15100.00%1100.00%
Total15100.00%1100.00%

__uml_postsetup(kmsg_dumper_stdout_init);

Overall Contributors

PersonTokensPropCommitsCommitProp
Thomas Meyer14799.32%150.00%
Greg Kroah-Hartman10.68%150.00%
Total148100.00%2100.00%
Directory: arch/um/kernel
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.