Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/kernfs fix 'physmem' - the actual value we want i...
details: https://anonhg.NetBSD.org/src/rev/767f9fd972b9
branches: trunk
changeset: 502951:767f9fd972b9
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat Jan 27 11:42:41 2001 +0000
description:
fix 'physmem' - the actual value we want is ctob(physmem)
diffstat:
sys/miscfs/kernfs/kernfs.h | 3 ++-
sys/miscfs/kernfs/kernfs_vnops.c | 8 ++++++--
2 files changed, 8 insertions(+), 3 deletions(-)
diffs (46 lines):
diff -r cf81950eca93 -r 767f9fd972b9 sys/miscfs/kernfs/kernfs.h
--- a/sys/miscfs/kernfs/kernfs.h Sat Jan 27 11:10:18 2001 +0000
+++ b/sys/miscfs/kernfs/kernfs.h Sat Jan 27 11:42:41 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs.h,v 1.13 2000/07/14 07:21:50 thorpej Exp $ */
+/* $NetBSD: kernfs.h,v 1.14 2001/01/27 11:42:41 jdolecek Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -58,6 +58,7 @@
#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 cf81950eca93 -r 767f9fd972b9 sys/miscfs/kernfs/kernfs_vnops.c
--- a/sys/miscfs/kernfs/kernfs_vnops.c Sat Jan 27 11:10:18 2001 +0000
+++ b/sys/miscfs/kernfs/kernfs_vnops.c Sat Jan 27 11:42:41 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs_vnops.c,v 1.71 2001/01/22 12:17:38 jdolecek Exp $ */
+/* $NetBSD: kernfs_vnops.c,v 1.72 2001/01/27 11:42:41 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"), &physmem, KTT_INT, VREG, READ_MODE },
+ { DT_REG, N("physmem"), 0, KTT_PHYSMEM, VREG, READ_MODE },
#if 0
{ DT_DIR, N("root"), 0, KTT_NULL, VDIR, DIR_MODE },
#endif
@@ -278,6 +278,10 @@
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