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 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _LINUX_PROC_FS_H 20 #define _LINUX_PROC_FS_H 21 #include <linux/slab.h> 22 #include <linux/fs.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #include <linux/spinlock.h> 25 #include <asm/atomic.h> 26 #define FIRST_PROCESS_ENTRY 256 27 enum { 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 PROC_ROOT_INO = 1, 30 }; 31 #define PROC_SUPER_MAGIC 0x9fa0 32 typedef int (read_proc_t)(char *page, char **start, off_t off, 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 int count, int *eof, void *data); 35 typedef int (write_proc_t)(struct file *file, const char __user *buffer, 36 unsigned long count, void *data); 37 typedef int (get_info_t)(char *, char **, off_t, int); 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 struct proc_dir_entry { 40 unsigned int low_ino; 41 unsigned short namelen; 42 const char *name; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 mode_t mode; 45 nlink_t nlink; 46 uid_t uid; 47 gid_t gid; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 loff_t size; 50 struct inode_operations * proc_iops; 51 const struct file_operations * proc_fops; 52 get_info_t *get_info; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 struct module *owner; 55 struct proc_dir_entry *next, *parent, *subdir; 56 void *data; 57 read_proc_t *read_proc; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 write_proc_t *write_proc; 60 atomic_t count; 61 int deleted; 62 void *set; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 }; 65 struct kcore_list { 66 struct kcore_list *next; 67 unsigned long addr; 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 size_t size; 70 }; 71 struct vmcore { 72 struct list_head list; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 unsigned long long paddr; 75 unsigned long long size; 76 loff_t offset; 77 }; 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 #define proc_root_driver NULL 80 #define proc_net NULL 81 #define proc_bus NULL 82 #define proc_net_fops_create(name, mode, fops) ({ (void)(mode), NULL; }) 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 #define proc_net_create(name, mode, info) ({ (void)(mode), NULL; }) 85 #define remove_proc_entry(name, parent) do {} while (0) 86 struct tty_driver; 87 struct proc_inode { 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 struct pid *pid; 90 int fd; 91 union { 92 int (*proc_get_link)(struct inode *, struct dentry **, struct vfsmount **); 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 int (*proc_read)(struct task_struct *task, char *page); 95 } op; 96 struct proc_dir_entry *pde; 97 struct inode vfs_inode; 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 }; 100 struct proc_maps_private { 101 struct pid *pid; 102 struct task_struct *task; 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 struct vm_area_struct *tail_vma; 105 }; 106 #endif 107