Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/arch/s390/kernel/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 950 B image not shown  

Quelle  early_printk.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0
/*
 *    Copyright IBM Corp. 2017
 */


#include <linux/console.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <asm/setup.h>
#include <asm/sclp.h>

static void sclp_early_write(struct console *con, const char *s, unsigned int len)
{
 __sclp_early_printk(s, len);
}

static struct console sclp_early_console = {
 .name  = "earlysclp",
 .write = sclp_early_write,
 .flags = CON_PRINTBUFFER | CON_BOOT,
 .index = -1,
};

void __init register_early_console(void)
{
 if (early_console)
  return;
 if (!sclp.has_linemode && !sclp.has_vt220)
  return;
 early_console = &sclp_early_console;
 register_console(early_console);
}

static int __init setup_early_printk(char *buf)
{
 if (early_console)
  return 0;
 /* Accept only "earlyprintk" and "earlyprintk=sclp" */
 if (buf && !str_has_prefix(buf, "sclp"))
  return 0;
 register_early_console();
 return 0;
}
early_param("earlyprintk", setup_early_printk);

Messung V0.5
C=96 H=93 G=94

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.