Deleted Added
full compact
procfs.h (46155) procfs.h (46201)
1/*
2 * Copyright (c) 1993 Jan-Simon Pendry
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Jan-Simon Pendry.
8 *

--- 23 unchanged lines hidden (view full) ---

32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)procfs.h 8.9 (Berkeley) 5/14/95
38 *
39 * From:
1/*
2 * Copyright (c) 1993 Jan-Simon Pendry
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Jan-Simon Pendry.
8 *

--- 23 unchanged lines hidden (view full) ---

32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)procfs.h 8.9 (Berkeley) 5/14/95
38 *
39 * From:
40 * $Id: procfs.h,v 1.22 1999/04/27 11:16:35 phk Exp $
40 * $Id: procfs.h,v 1.23 1999/04/28 11:37:18 phk Exp $
41 */
42
43/*
44 * The different types of node in a procfs filesystem
45 */
46typedef enum {
47 Proot, /* the filesystem root */
48 Pcurproc, /* symbolic link for curproc */
49 Pproc, /* a process-specific sub-directory */
50 Pfile, /* the executable file */
51 Pmem, /* the process's memory image */
52 Pregs, /* the process's register set */
53 Pfpregs, /* the process's FP register set */
54 Pctl, /* process control */
55 Pstatus, /* process status */
56 Pnote, /* process notifier */
57 Pnotepg, /* process group notifier */
58 Pmap, /* memory map */
59 Ptype, /* executable type */
41 */
42
43/*
44 * The different types of node in a procfs filesystem
45 */
46typedef enum {
47 Proot, /* the filesystem root */
48 Pcurproc, /* symbolic link for curproc */
49 Pproc, /* a process-specific sub-directory */
50 Pfile, /* the executable file */
51 Pmem, /* the process's memory image */
52 Pregs, /* the process's register set */
53 Pfpregs, /* the process's FP register set */
54 Pctl, /* process control */
55 Pstatus, /* process status */
56 Pnote, /* process notifier */
57 Pnotepg, /* process group notifier */
58 Pmap, /* memory map */
59 Ptype, /* executable type */
60 Pcmdline /* command line */
60 Pcmdline, /* command line */
61 Prlimit /* resource limits */
61} pfstype;
62
63/*
64 * control data for the proc file system.
65 */
66struct pfsnode {
67 struct pfsnode *pfs_next; /* next on list */
68 struct vnode *pfs_vnode; /* vnode associated with this pfsnode */

--- 82 unchanged lines hidden (view full) ---

151int procfs_doregs __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
152int procfs_dofpregs __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
153int procfs_domem __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
154int procfs_doctl __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
155int procfs_dostatus __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
156int procfs_domap __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
157int procfs_dotype __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
158int procfs_docmdline __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
62} pfstype;
63
64/*
65 * control data for the proc file system.
66 */
67struct pfsnode {
68 struct pfsnode *pfs_next; /* next on list */
69 struct vnode *pfs_vnode; /* vnode associated with this pfsnode */

--- 82 unchanged lines hidden (view full) ---

152int procfs_doregs __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
153int procfs_dofpregs __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
154int procfs_domem __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
155int procfs_doctl __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
156int procfs_dostatus __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
157int procfs_domap __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
158int procfs_dotype __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
159int procfs_docmdline __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
160int procfs_dorlimit __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
159
160/* Return 1 if process has special kernel digging privileges */
161int procfs_kmemaccess __P((struct proc *));
162
163/* functions to check whether or not files should be displayed */
164int procfs_validfile __P((struct proc *));
165int procfs_validfpregs __P((struct proc *));
166int procfs_validregs __P((struct proc *));
167int procfs_validmap __P((struct proc *));
168int procfs_validtype __P((struct proc *));
169
170#define PROCFS_LOCKED 0x01
171#define PROCFS_WANT 0x02
172
173extern vop_t **procfs_vnodeop_p;
174
175int procfs_root __P((struct mount *, struct vnode **));
176int procfs_rw __P((struct vop_read_args *));
177#endif /* KERNEL */
161
162/* Return 1 if process has special kernel digging privileges */
163int procfs_kmemaccess __P((struct proc *));
164
165/* functions to check whether or not files should be displayed */
166int procfs_validfile __P((struct proc *));
167int procfs_validfpregs __P((struct proc *));
168int procfs_validregs __P((struct proc *));
169int procfs_validmap __P((struct proc *));
170int procfs_validtype __P((struct proc *));
171
172#define PROCFS_LOCKED 0x01
173#define PROCFS_WANT 0x02
174
175extern vop_t **procfs_vnodeop_p;
176
177int procfs_root __P((struct mount *, struct vnode **));
178int procfs_rw __P((struct vop_read_args *));
179#endif /* KERNEL */