1/****************************************************************************
2 ****************************************************************************
3 ***
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.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef _LINUX_PROC_FS_H
13#define _LINUX_PROC_FS_H
14
15#include <linux/slab.h>
16#include <linux/fs.h>
17#include <linux/spinlock.h>
18#include <asm/atomic.h>
19
20#define FIRST_PROCESS_ENTRY 256
21
22enum {
23 PROC_ROOT_INO = 1,
24};
25
26#define PROC_SUPER_MAGIC 0x9fa0
27
28typedef int (read_proc_t)(char *page, char **start, off_t off,
29 int count, int *eof, void *data);
30typedef int (write_proc_t)(struct file *file, const char __user *buffer,
31 unsigned long count, void *data);
32typedef int (get_info_t)(char *, char **, off_t, int);
33
34struct proc_dir_entry {
35 unsigned int low_ino;
36 unsigned short namelen;
37 const char *name;
38 mode_t mode;
39 nlink_t nlink;
40 uid_t uid;
41 gid_t gid;
42 loff_t size;
43 struct inode_operations * proc_iops;
44 const struct file_operations * proc_fops;
45 get_info_t *get_info;
46 struct module *owner;
47 struct proc_dir_entry *next, *parent, *subdir;
48 void *data;
49 read_proc_t *read_proc;
50 write_proc_t *write_proc;
51 atomic_t count;
52 int deleted;
53 void *set;
54};
55
56struct kcore_list {
57 struct kcore_list *next;
58 unsigned long addr;
59 size_t size;
60};
61
62struct vmcore {
63 struct list_head list;
64 unsigned long long paddr;
65 unsigned long long size;
66 loff_t offset;
67};
68
69#define proc_root_driver NULL
70#define proc_net NULL
71#define proc_bus NULL
72
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)
76
77#endif
78