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

Quelle  interrupts.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irqnr.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>

/*
 * /proc/interrupts
 */

static void *int_seq_start(struct seq_file *f, loff_t *pos)
{
 return *pos <= irq_get_nr_irqs() ? pos : NULL;
}

static void *int_seq_next(struct seq_file *f, void *v, loff_t *pos)
{
 (*pos)++;
 if (*pos > irq_get_nr_irqs())
  return NULL;
 return pos;
}

static void int_seq_stop(struct seq_file *f, void *v)
{
 /* Nothing to do */
}

static const struct seq_operations int_seq_ops = {
 .start = int_seq_start,
 .next  = int_seq_next,
 .stop  = int_seq_stop,
 .show  = show_interrupts
};

static int __init proc_interrupts_init(void)
{
 proc_create_seq("interrupts", 0, NULL, &int_seq_ops);
 return 0;
}
fs_initcall(proc_interrupts_init);

Messung V0.5
C=93 H=91 G=91

¤ Dauer der Verarbeitung: 0.10 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.