Contributors: 12
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Andrew Morton |
68 |
42.50% |
1 |
5.56% |
Alexey Dobriyan |
44 |
27.50% |
2 |
11.11% |
Linus Torvalds |
21 |
13.12% |
3 |
16.67% |
Linus Torvalds (pre-git) |
8 |
5.00% |
4 |
22.22% |
Andi Kleen |
6 |
3.75% |
1 |
5.56% |
Bart Van Assche |
4 |
2.50% |
1 |
5.56% |
Adrian Bunk |
3 |
1.88% |
1 |
5.56% |
Christoph Hellwig |
2 |
1.25% |
1 |
5.56% |
Greg Kroah-Hartman |
1 |
0.62% |
1 |
5.56% |
Paul Gortmaker |
1 |
0.62% |
1 |
5.56% |
Dave Jones |
1 |
0.62% |
1 |
5.56% |
Jan Engelhardt |
1 |
0.62% |
1 |
5.56% |
Total |
160 |
|
18 |
|
123456789101112131415161718192021222324252627282930313233343536373839404142
// 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);