// 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) { … } static void *int_seq_next(struct seq_file *f, void *v, loff_t *pos) { … } static void int_seq_stop(struct seq_file *f, void *v) { … } static const struct seq_operations int_seq_ops = …; static int __init proc_interrupts_init(void) { … } fs_initcall(proc_interrupts_init);