blob: 2d833496322b559a6a7f50a4f01a7ef836cb97c6 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_PROC_FS_H
20#define _LINUX_PROC_FS_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <linux/slab.h>
22#include <linux/fs.h>
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#include <linux/spinlock.h>
25#include <asm/atomic.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026#define FIRST_PROCESS_ENTRY 256
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080027enum {
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029 PROC_ROOT_INO = 1,
30};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080031#define PROC_SUPER_MAGIC 0x9fa0
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080032typedef int (read_proc_t)(char *page, char **start, off_t off,
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034 int count, int *eof, void *data);
35typedef int (write_proc_t)(struct file *file, const char __user *buffer,
36 unsigned long count, void *data);
37typedef int (get_info_t)(char *, char **, off_t, int);
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039struct proc_dir_entry {
40 unsigned int low_ino;
41 unsigned short namelen;
42 const char *name;
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044 mode_t mode;
45 nlink_t nlink;
46 uid_t uid;
47 gid_t gid;
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049 loff_t size;
50 struct inode_operations * proc_iops;
51 const struct file_operations * proc_fops;
52 get_info_t *get_info;
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054 struct module *owner;
55 struct proc_dir_entry *next, *parent, *subdir;
56 void *data;
57 read_proc_t *read_proc;
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059 write_proc_t *write_proc;
60 atomic_t count;
61 int deleted;
62 void *set;
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080064};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080065struct kcore_list {
66 struct kcore_list *next;
67 unsigned long addr;
Ben Cheng654325d2012-03-07 21:13:49 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080069 size_t size;
70};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080071struct vmcore {
72 struct list_head list;
Ben Cheng654325d2012-03-07 21:13:49 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080074 unsigned long long paddr;
75 unsigned long long size;
76 loff_t offset;
77};
Ben Cheng654325d2012-03-07 21:13:49 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080079#define proc_root_driver NULL
80#define proc_net NULL
81#define proc_bus NULL
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080082#define proc_net_fops_create(name, mode, fops) ({ (void)(mode), NULL; })
Ben Cheng654325d2012-03-07 21:13:49 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080084#define proc_net_create(name, mode, info) ({ (void)(mode), NULL; })
85#define remove_proc_entry(name, parent) do {} while (0)
Ben Cheng654325d2012-03-07 21:13:49 -080086struct tty_driver;
87struct 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};
100struct 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};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800106#endif