summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-10-07 20:08:42 +0000
committerdes <des@FreeBSD.org>2001-10-07 20:08:42 +0000
commit29c5c858fce0c57b6ec8d88ecac8c437e7eb7f31 (patch)
tree619938768546b5f4413bb8dc40f32a9f6cff02e7 /sys/fs/procfs/procfs.h
parent6eea6dc1d4f5db40f3dc480af266ecd685f624a2 (diff)
downloadFreeBSD-src-29c5c858fce0c57b6ec8d88ecac8c437e7eb7f31.zip
FreeBSD-src-29c5c858fce0c57b6ec8d88ecac8c437e7eb7f31.tar.gz
Dissociate ptrace from procfs.
Until now, the ptrace syscall was implemented as a wrapper that called various functions in procfs depending on which ptrace operation was requested. Most of these functions were themselves wrappers around procfs_{read,write}_{,db,fp}regs(), with only some extra error checks, which weren't necessary in the ptrace case anyway. This commit moves procfs_rwmem() from procfs_mem.c into sys_process.c (renaming it to proc_rwmem() in the process), and implements ptrace() directly in terms of procfs_{read,write}_{,db,fp}regs() instead of having it fake up a struct uio and then call procfs_do{,db,fp}regs(). It also moves the prototypes for procfs_{read,write}_{,db,fp}regs() and proc_rwmem() from proc.h to ptrace.h, and marks all procfs files except procfs_machdep.c as "optional procfs" instead of "standard".
Diffstat (limited to 'sys/fs/procfs/procfs.h')
-rw-r--r--sys/fs/procfs/procfs.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/fs/procfs/procfs.h b/sys/fs/procfs/procfs.h
index d97f825..67af4be 100644
--- a/sys/fs/procfs/procfs.h
+++ b/sys/fs/procfs/procfs.h
@@ -118,15 +118,6 @@ struct dbreg;
void procfs_exit __P((struct proc *));
int procfs_freevp __P((struct vnode *));
int procfs_allocvp __P((struct mount *, struct vnode **, long, pfstype));
-struct vnode *procfs_findtextvp __P((struct proc *));
-int procfs_sstep __P((struct thread *));
-void procfs_fix_sstep __P((struct thread *));
-int procfs_read_regs __P((struct thread *, struct reg *));
-int procfs_write_regs __P((struct thread *, struct reg *));
-int procfs_read_fpregs __P((struct thread *, struct fpreg *));
-int procfs_write_fpregs __P((struct thread *, struct fpreg *));
-int procfs_read_dbregs __P((struct thread *, struct dbreg *));
-int procfs_write_dbregs __P((struct thread *, struct dbreg *));
int procfs_donote __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
int procfs_doregs __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
int procfs_dofpregs __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
OpenPOWER on IntegriCloud