Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys Add vmcmd_readvn vmcmd.
details: https://anonhg.NetBSD.org/src/rev/b975705fd55e
branches: netbsd-1-5
changeset: 488228:b975705fd55e
user: matt <matt%NetBSD.org@localhost>
date: Thu Jun 22 16:26:12 2000 +0000
description:
Add vmcmd_readvn vmcmd.
diffstat:
sys/kern/exec_subr.c | 12 +++++++++++-
sys/sys/exec.h | 3 ++-
2 files changed, 13 insertions(+), 2 deletions(-)
diffs (43 lines):
diff -r ea8b7ea314ab -r b975705fd55e sys/kern/exec_subr.c
--- a/sys/kern/exec_subr.c Thu Jun 22 16:23:01 2000 +0000
+++ b/sys/kern/exec_subr.c Thu Jun 22 16:26:12 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_subr.c,v 1.18 2000/06/13 04:25:31 chs Exp $ */
+/* $NetBSD: exec_subr.c,v 1.18.2.1 2000/06/22 16:26:13 matt Exp $ */
/*
* Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou
@@ -227,6 +227,16 @@
if (error)
return error;
+ return vmcmd_readvn(p, cmd);
+}
+
+int
+vmcmd_readvn(p, cmd)
+ struct proc *p;
+ struct exec_vmcmd *cmd;
+{
+ int error;
+
error = vn_rdwr(UIO_READ, cmd->ev_vp, (caddr_t)cmd->ev_addr,
cmd->ev_len, cmd->ev_offset, UIO_USERSPACE, IO_UNIT,
p->p_ucred, NULL, p);
diff -r ea8b7ea314ab -r b975705fd55e sys/sys/exec.h
--- a/sys/sys/exec.h Thu Jun 22 16:23:01 2000 +0000
+++ b/sys/sys/exec.h Thu Jun 22 16:26:12 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec.h,v 1.68 1999/12/30 15:46:16 eeh Exp $ */
+/* $NetBSD: exec.h,v 1.68.4.1 2000/06/22 16:26:12 matt Exp $ */
/*-
* Copyright (c) 1994 Christopher G. Demetriou
@@ -161,6 +161,7 @@
void kill_vmcmds __P((struct exec_vmcmd_set *evsp));
int vmcmd_map_pagedvn __P((struct proc *, struct exec_vmcmd *));
int vmcmd_map_readvn __P((struct proc *, struct exec_vmcmd *));
+int vmcmd_readvn __P((struct proc *, struct exec_vmcmd *));
int vmcmd_map_zero __P((struct proc *, struct exec_vmcmd *));
void *copyargs __P((struct exec_package *, struct ps_strings *,
void *, void *));
Home |
Main Index |
Thread Index |
Old Index