1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _LINUX_PROC_FS_H
13 #define _LINUX_PROC_FS_H
15 #include <linux/slab.h>
17 #include <linux/spinlock.h>
18 #include <asm/atomic.h>
20 #define FIRST_PROCESS_ENTRY 256
26 #define PROC_SUPER_MAGIC 0x9fa0
28 typedef int (read_proc_t)(char *page, char **start, off_t off,
29 int count, int *eof, void *data);
30 typedef int (write_proc_t)(struct file *file, const char __user *buffer,
31 unsigned long count, void *data);
32 typedef int (get_info_t)(char *, char **, off_t, int);
34 struct proc_dir_entry {
36 unsigned short namelen;
43 struct inode_operations * proc_iops;
44 const struct file_operations * proc_fops;
47 struct proc_dir_entry *next, *parent, *subdir;
49 read_proc_t *read_proc;
50 write_proc_t *write_proc;
57 struct kcore_list *next;
63 struct list_head list;
64 unsigned long long paddr;
65 unsigned long long size;
69 #define proc_root_driver NULL
73 #define proc_net_fops_create(name, mode, fops) ({ (void)(mode), NULL; })
74 #define proc_net_create(name, mode, info) ({ (void)(mode), NULL; })
75 #define remove_proc_entry(name, parent) do {} while (0)