Debian Codegraph @

runtime/linux/autoconf-proc_ops.c

raw
1 // PR26099: Linux kernel commit d56c0d45f0e for version 5.6 made the following changes:
2 // - procfs functions now take struct proc_ops instead of struct file_operations
3 // - proc_dir_entry now has union{proc_ops,proc_dir_ops} instead of proc_fops
4 //
5 // XXX: It should be sufficient to test for the existence of struct proc_ops.
6
7 #include <linux/fs.h>
8 #include <linux/proc_fs.h>
9
10 int
11 proc_open_file_test(struct inode *inode, struct file *filp);
12
13 int
14 proc_open_file_test(struct inode *inode, struct file *filp)
15 {
16 return 0;
17 }
18
19 static struct proc_ops proc_ops_test __attribute__ ((unused)) = {
20 .proc_open = &proc_open_file_test,
21 };