Expose procfs_rwmem(). (This function will go away entirely when we

delete Mach VM.)
This commit is contained in:
thorpej 1999-03-13 00:57:13 +00:00
parent 9797e6cf17
commit 5e7b128211
2 changed files with 11 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: procfs.h,v 1.24 1999/03/12 18:45:40 christos Exp $ */ /* $NetBSD: procfs.h,v 1.25 1999/03/13 00:57:13 thorpej Exp $ */
/* /*
* Copyright (c) 1993 Jan-Simon Pendry * Copyright (c) 1993 Jan-Simon Pendry
@ -39,6 +39,10 @@
* @(#)procfs.h 8.9 (Berkeley) 5/14/95 * @(#)procfs.h 8.9 (Berkeley) 5/14/95
*/ */
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_uvm.h"
#endif
/* /*
* The different types of node in a procfs filesystem * The different types of node in a procfs filesystem
*/ */
@ -127,6 +131,10 @@ int procfs_docmdline __P((struct proc *, struct proc *, struct pfsnode *,
int procfs_checkioperm __P((struct proc *, struct proc *)); int procfs_checkioperm __P((struct proc *, struct proc *));
#if !defined(UVM)
int procfs_rwmem __P((struct proc *, struct uio *));
#endif
/* functions to check whether or not files should be displayed */ /* functions to check whether or not files should be displayed */
int procfs_validfile __P((struct proc *)); int procfs_validfile __P((struct proc *));
int procfs_validfpregs __P((struct proc *)); int procfs_validfpregs __P((struct proc *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: procfs_mem.c,v 1.20 1999/02/25 21:54:53 is Exp $ */ /* $NetBSD: procfs_mem.c,v 1.21 1999/03/13 00:57:13 thorpej Exp $ */
/* /*
* Copyright (c) 1993 Jan-Simon Pendry * Copyright (c) 1993 Jan-Simon Pendry
@ -65,9 +65,7 @@
#define ISSET(t, f) ((t) & (f)) #define ISSET(t, f) ((t) & (f))
#if !defined(UVM) #if !defined(UVM)
static int procfs_rwmem __P((struct proc *, struct uio *)); int
static int
procfs_rwmem(p, uio) procfs_rwmem(p, uio)
struct proc *p; struct proc *p;
struct uio *uio; struct uio *uio;