cregit-Linux how code gets into the kernel

Release 4.18 fs/proc/interrupts.c

Directory: fs/proc
// 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 <= nr_irqs) ? pos : NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan28100.00%1100.00%
Total28100.00%1100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan39100.00%1100.00%
Total39100.00%1100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan16100.00%1100.00%
Total16100.00%1100.00%

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; }

Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan2291.67%150.00%
Christoph Hellwig28.33%150.00%
Total24100.00%2100.00%

fs_initcall(proc_interrupts_init);

Overall Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan15697.50%125.00%
Christoph Hellwig21.25%125.00%
Paul Gortmaker10.62%125.00%
Greg Kroah-Hartman10.62%125.00%
Total160100.00%4100.00%
Directory: fs/proc
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.