Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F141005354
D19007.id53455.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D19007.id53455.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D19007: Add descriptions for sysctls in kern_mib.c which lack them.
Attached
Detach File
Event Timeline
Log In to Comment