Page MenuHomeFreeBSD

D19007.id53455.diff
No OneTemporary

D19007.id53455.diff

Index: sys/kern/kern_mib.c
===================================================================
--- sys/kern/kern_mib.c
+++ sys/kern/kern_mib.c
@@ -187,7 +187,9 @@
return (sysctl_handle_long(oidp, &val, 0, req));
}
SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_ULONG | CTLFLAG_RD,
- 0, 0, sysctl_hw_physmem, "LU", "");
+ 0, 0, sysctl_hw_physmem, "LU",
+ "Amount of physical memory (in bytes), minus amount used by kernel, "
+ "pre-loaded modules, and the dcons buffer (except on x86)");
static int
sysctl_hw_realmem(SYSCTL_HANDLER_ARGS)
@@ -201,7 +203,9 @@
return (sysctl_handle_long(oidp, &val, 0, req));
}
SYSCTL_PROC(_hw, HW_REALMEM, realmem, CTLTYPE_ULONG | CTLFLAG_RD,
- 0, 0, sysctl_hw_realmem, "LU", "");
+ 0, 0, sysctl_hw_realmem, "LU", "Amount of physical memory (in bytes) "
+ "reported by the firmware. That value is sometimes not sane; in that "
+ "case, the kernel reports the max memory address instead.");
static int
sysctl_hw_usermem(SYSCTL_HANDLER_ARGS)
@@ -216,9 +220,12 @@
return (sysctl_handle_long(oidp, &val, 0, req));
}
SYSCTL_PROC(_hw, HW_USERMEM, usermem, CTLTYPE_ULONG | CTLFLAG_RD,
- 0, 0, sysctl_hw_usermem, "LU", "");
+ 0, 0, sysctl_hw_usermem, "LU",
+ "Amount of memory (in bytes) which is not wired");
-SYSCTL_LONG(_hw, OID_AUTO, availpages, CTLFLAG_RD, &physmem, 0, "");
+SYSCTL_LONG(_hw, OID_AUTO, availpages, CTLFLAG_RD, &physmem, 0,
+ "Amount of physical memory (in pages), minus amount used by kernel, "
+ "pre-loaded modules, and the dcons buffer (except on x86)");
u_long pagesizes[MAXPAGESIZES] = { PAGE_SIZE };

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 31, 4:06 PM (3 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27415949
Default Alt Text
D19007.id53455.diff (1 KB)

Event Timeline