Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/init/   (Linux Kernel Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 862 B image not shown  

Quelle  noinitramfs.c

  Sprache: C
 

// SPDX-License-Identifier: GPL-2.0-only
/*
 * init/noinitramfs.c
 *
 * Copyright (C) 2006, NXP Semiconductors, All Rights Reserved
 * Author: Jean-Paul Saman <jean-paul.saman@nxp.com>
 */

#include <linux/init.h>
#include <linux/stat.h>
#include <linux/kdev_t.h>
#include <linux/syscalls.h>
#include <linux/init_syscalls.h>
#include <linux/umh.h>

/*
 * Create a simple rootfs that is similar to the default initramfs
 */

static int __init default_rootfs(void)
{
 int err;

 usermodehelper_enable();
 err = init_mkdir("/dev"0755);
 if (err < 0)
  goto out;

 err = init_mknod("/dev/console", S_IFCHR | S_IRUSR | S_IWUSR,
   new_encode_dev(MKDEV(51)));
 if (err < 0)
  goto out;

 err = init_mkdir("/root"0700);
 if (err < 0)
  goto out;

 return 0;

out:
 printk(KERN_WARNING "Failed to create a rootfs\n");
 return err;
}
rootfs_initcall(default_rootfs);

Messung V0.5 in Prozent
C=94 H=50 G=75

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-06-07) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.