Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/kernfs Back previous out, it was right the way it...
details: https://anonhg.NetBSD.org/src/rev/68b475a15cac
branches: trunk
changeset: 502952:68b475a15cac
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat Jan 27 12:28:35 2001 +0000
description:
Back previous out, it was right the way it was. Seems like I should
attend some basic arithmetic lessons to avoid such mistakes :-/
diffstat:
sys/miscfs/kernfs/kernfs.h | 3 +--
sys/miscfs/kernfs/kernfs_vnops.c | 8 ++------
2 files changed, 3 insertions(+), 8 deletions(-)
diffs (46 lines):
diff -r 767f9fd972b9 -r 68b475a15cac sys/miscfs/kernfs/kernfs.h
--- a/sys/miscfs/kernfs/kernfs.h Sat Jan 27 11:42:41 2001 +0000
+++ b/sys/miscfs/kernfs/kernfs.h Sat Jan 27 12:28:35 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs.h,v 1.14 2001/01/27 11:42:41 jdolecek Exp $ */
+/* $NetBSD: kernfs.h,v 1.15 2001/01/27 12:28:35 jdolecek Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -58,7 +58,6 @@
#define KTT_AVENRUN 53
#define KTT_DEVICE 71
#define KTT_MSGBUF 89
-#define KTT_PHYSMEM 90
u_char kt_tag;
u_char kt_vtype;
mode_t kt_mode;
diff -r 767f9fd972b9 -r 68b475a15cac sys/miscfs/kernfs/kernfs_vnops.c
--- a/sys/miscfs/kernfs/kernfs_vnops.c Sat Jan 27 11:42:41 2001 +0000
+++ b/sys/miscfs/kernfs/kernfs_vnops.c Sat Jan 27 12:28:35 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs_vnops.c,v 1.72 2001/01/27 11:42:41 jdolecek Exp $ */
+/* $NetBSD: kernfs_vnops.c,v 1.73 2001/01/27 12:28:35 jdolecek Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -86,7 +86,7 @@
{ DT_REG, N("loadavg"), 0, KTT_AVENRUN, VREG, READ_MODE },
{ DT_REG, N("msgbuf"), 0, KTT_MSGBUF, VREG, READ_MODE },
{ DT_REG, N("pagesize"), &uvmexp.pagesize, KTT_INT, VREG, READ_MODE },
- { DT_REG, N("physmem"), 0, KTT_PHYSMEM, VREG, READ_MODE },
+ { DT_REG, N("physmem"), &physmem, KTT_INT, VREG, READ_MODE },
#if 0
{ DT_DIR, N("root"), 0, KTT_NULL, VDIR, DIR_MODE },
#endif
@@ -278,10 +278,6 @@
averunnable.ldavg[2], averunnable.fscale);
break;
- case KTT_PHYSMEM:
- sprintf(*bufp, "%llu", (u_int64_t) ctob(physmem));
- break;
-
default:
return (0);
}
Home |
Main Index |
Thread Index |
Old Index