Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-uio_vmspace]: src/sys/kern use VMSPACE_IS_KERNEL.
details: https://anonhg.NetBSD.org/src/rev/7b7d576f92f0
branches: yamt-uio_vmspace
changeset: 586694:7b7d576f92f0
user: yamt <yamt%NetBSD.org@localhost>
date: Sat Dec 31 11:21:51 2005 +0000
description:
use VMSPACE_IS_KERNEL.
diffstat:
sys/kern/kern_subr.c | 8 ++++----
sys/kern/uipc_socket.c | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r cc056c9edd75 -r 7b7d576f92f0 sys/kern/kern_subr.c
--- a/sys/kern/kern_subr.c Sat Dec 31 11:21:26 2005 +0000
+++ b/sys/kern/kern_subr.c Sat Dec 31 11:21:51 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_subr.c,v 1.123.2.1 2005/12/31 11:14:01 yamt Exp $ */
+/* $NetBSD: kern_subr.c,v 1.123.2.2 2005/12/31 11:21:51 yamt Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc.
@@ -86,7 +86,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.123.2.1 2005/12/31 11:14:01 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.123.2.2 2005/12/31 11:21:51 yamt Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@@ -163,7 +163,7 @@
}
if (cnt > n)
cnt = n;
- if (!VM_MAP_IS_KERNEL(&vm->vm_map)) {
+ if (!VMSPACE_IS_KERNEL(&vm->vm_map)) {
if (curcpu()->ci_schedstate.spc_flags &
SPCF_SHOULDYIELD)
preempt(1);
@@ -232,7 +232,7 @@
uio->uio_iov++;
goto again;
}
- if (!VM_MAP_IS_KERNEL(&uio->uio_vmspace->vm_map)) {
+ if (!VMSPACE_IS_KERNEL(&uio->uio_vmspace->vm_map)) {
if (subyte(iov->iov_base, c) < 0)
return (EFAULT);
} else {
diff -r cc056c9edd75 -r 7b7d576f92f0 sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c Sat Dec 31 11:21:26 2005 +0000
+++ b/sys/kern/uipc_socket.c Sat Dec 31 11:21:51 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_socket.c,v 1.115.2.1 2005/12/31 11:14:01 yamt Exp $ */
+/* $NetBSD: uipc_socket.c,v 1.115.2.2 2005/12/31 11:21:51 yamt Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.115.2.1 2005/12/31 11:14:01 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.115.2.2 2005/12/31 11:21:51 yamt Exp $");
#include "opt_sock_counters.h"
#include "opt_sosend_loan.h"
@@ -390,7 +390,7 @@
vaddr_t lva, va;
int npgs, i, error;
- if (VM_MAP_IS_KERNEL(&uio->uio_vmspace->vm_map))
+ if (VMSPACE_IS_KERNEL(&uio->uio_vmspace->vm_map))
return (0);
if (iov->iov_len < (size_t) space)
Home |
Main Index |
Thread Index |
Old Index